Skip to content

Commit 5cd09fb

Browse files
committed
CIS2 CLI - adjust messaging
- Clarify expected input value for updates - Minor changes to error/menu wording
1 parent f304c62 commit 5cd09fb

File tree

1 file changed

+6
-4
lines changed
  • scripts/cis2_cli

1 file changed

+6
-4
lines changed

scripts/cis2_cli/cis2

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class CIS2CLI:
227227
"""Display the main menu options."""
228228
print("Available options:")
229229
print("1. Create new configuration")
230-
print("2. Display specific configuration")
230+
print("2. Display existing configuration")
231231
print("3. Update existing configuration")
232232
print("4. Re-authenticate")
233233
print("5. Quit")
@@ -399,7 +399,9 @@ class CIS2CLI:
399399
print(f"{self.BLUE}Hash: {self.last_config_hash[:8]}...{self.RESET}")
400400
print()
401401

402-
print("Enter the new client_config as JSON:")
402+
print(
403+
"Enter the client_config hash with the fields you want to update. Don't include the client_config key, just the config object itself."
404+
)
403405
print(
404406
"(You can paste a multi-line JSON object. Press Enter on an empty line when done)"
405407
)
@@ -476,7 +478,7 @@ class CIS2CLI:
476478
self.show_menu()
477479

478480
try:
479-
choice = input("Enter your choice (1-5): ").strip()
481+
choice = input("Enter an option (1-5): ").strip()
480482
print()
481483

482484
if choice == "1":
@@ -491,7 +493,7 @@ class CIS2CLI:
491493
print("Goodbye!")
492494
break
493495
else:
494-
print("Invalid choice. Please enter 1-5.")
496+
print("Invalid option. Please enter 1-5.")
495497

496498
print()
497499

0 commit comments

Comments
 (0)