From 1f8f853c8ae1a78729199404095e8719bc1e17a3 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 11 Jan 2026 22:35:22 +0000 Subject: [PATCH] feat: improve interactive CLI prompts for configuration Added helper text to guide users on where to find their Profile ID and API Token. Clarified that the API Token input is hidden to prevent confusion. --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index e6aabc57..270a0379 100644 --- a/main.py +++ b/main.py @@ -712,14 +712,16 @@ def main(): if not args.dry_run and sys.stdin.isatty(): if not profile_ids: print(f"{Colors.CYAN}ℹ Profile ID is missing.{Colors.ENDC}") + print(f"{Colors.BLUE} (Tip: You can find this in your Control D dashboard URL: /profiles/){Colors.ENDC}") p_input = input(f"{Colors.BOLD}Enter Control D Profile ID:{Colors.ENDC} ").strip() if p_input: profile_ids = [p.strip() for p in p_input.split(",") if p.strip()] if not TOKEN: print(f"{Colors.CYAN}ℹ API Token is missing.{Colors.ENDC}") + print(f"{Colors.BLUE} (Tip: Generate this in Account > My Account > API Tokens){Colors.ENDC}") import getpass - t_input = getpass.getpass(f"{Colors.BOLD}Enter Control D API Token:{Colors.ENDC} ").strip() + t_input = getpass.getpass(f"{Colors.BOLD}Enter Control D API Token (input hidden):{Colors.ENDC} ").strip() if t_input: TOKEN = t_input