Skip to content

Commit

Permalink
Improve session details output in CLI by enhancing console messages f…
Browse files Browse the repository at this point in the history
…or better user feedback
  • Loading branch information
upayanmazumder committed Nov 29, 2024
1 parent 9c2ae77 commit 0b6bf98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CLI/cas/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def handle_auth_response():
if email and token:
session_details = {"email": email, "token": token}
save_session_details(session_details)
console.print(f"[bold green]✔ Session details saved:[/] {session_details}")
console.print(f"[bold green]✔ Session details saved")
console.print(f"[bold blue]Email: [blue]{email}")
console.print("[bold purple]Authorization completed! [purple] You can now use cas pull,push etc..")
else:
console.print("[bold red]❌ Invalid or empty session details, skipping update.")

Expand Down

0 comments on commit 0b6bf98

Please sign in to comment.