mirror of
https://github.com/CopterExpress/clever-show.git
synced 2026-05-31 01:09:33 +00:00
Add update_repo message handler
This commit is contained in:
@@ -190,6 +190,12 @@ def _command_test(**kwargs):
|
||||
logger.info("logging info test")
|
||||
print("stdout test")
|
||||
|
||||
@messaging.message_callback("update_repo")
|
||||
def _command_update_repo(**kwargs):
|
||||
os.system("git reset --hard HEAD")
|
||||
os.system("git fetch")
|
||||
os.system("git pull")
|
||||
|
||||
@messaging.message_callback("reboot_fcu")
|
||||
def _command_reboot():
|
||||
reboot_fcu()
|
||||
|
||||
Reference in New Issue
Block a user