File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
src/mcp_agent/cli/cloud/commands/auth Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -17,19 +17,16 @@ def logout() -> None:
1717 print_info ("Not currently logged in." )
1818 return
1919
20- # Show who is being logged out
2120 user_info = "current user"
2221 if credentials .username :
2322 user_info = f"user '{ credentials .username } '"
2423 elif credentials .email :
2524 user_info = f"user '{ credentials .email } '"
2625
27- # Confirm logout action
2826 if not Confirm .ask (f"Are you sure you want to logout { user_info } ?" , default = False ):
2927 print_info ("Logout cancelled." )
3028 return
3129
32- # Clear credentials
3330 if clear_credentials ():
3431 print_success ("Successfully logged out." )
3532 else :
Original file line number Diff line number Diff line change @@ -29,18 +29,15 @@ def whoami() -> None:
2929
3030 console = Console ()
3131
32- # Create user info table
3332 user_table = Table (show_header = False , box = None )
3433 user_table .add_column ("Field" , style = "bold" )
3534 user_table .add_column ("Value" )
3635
37- # Add user information
3836 if credentials .username :
3937 user_table .add_row ("Username" , credentials .username )
4038 if credentials .email :
4139 user_table .add_row ("Email" , credentials .email )
4240
43- # Add token expiry if available
4441 if credentials .token_expires_at :
4542 user_table .add_row (
4643 "Token Expires" ,
@@ -49,6 +46,5 @@ def whoami() -> None:
4946 else :
5047 user_table .add_row ("Token Expires" , "Never" )
5148
52- # Create user panel
5349 user_panel = Panel (user_table , title = "User Information" , title_align = "left" )
5450 console .print (user_panel )
You can’t perform that action at this time.
0 commit comments