feat: Add web simulator and enhance device status management with activate and decommission actions.
This commit is contained in:
@@ -143,12 +143,13 @@ if __name__ == "__main__":
|
||||
print(" 4. Switch to PROD Mode")
|
||||
print(" 5. Swap Active Slot (A/B)")
|
||||
print(" 6. Start Automated Loop")
|
||||
print(" 7. Request Re-enlistment")
|
||||
print(" 0. Exit Orchestrator")
|
||||
print("-" * 45)
|
||||
|
||||
while True:
|
||||
print_menu()
|
||||
choice = input("Select operation [0-6] >> ").strip()
|
||||
choice = input("Select operation [0-7] >> ").strip()
|
||||
|
||||
if choice == "1":
|
||||
hu.register()
|
||||
@@ -177,6 +178,9 @@ if __name__ == "__main__":
|
||||
break
|
||||
except KeyboardInterrupt:
|
||||
print("\n[!] Loop interrupted by user.")
|
||||
elif choice == "7":
|
||||
hu.status = "PENDING"
|
||||
hu.register()
|
||||
elif choice == "0":
|
||||
print("[*] Powering down head unit...")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user