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 @@ -28,18 +28,15 @@ def whoami() -> None:
2828
2929 console = Console ()
3030
31- # Create user info table
3231 user_table = Table (show_header = False , box = None )
3332 user_table .add_column ("Field" , style = "bold" )
3433 user_table .add_column ("Value" )
3534
36- # Add user information
3735 if credentials .username :
3836 user_table .add_row ("Username" , credentials .username )
3937 if credentials .email :
4038 user_table .add_row ("Email" , credentials .email )
4139
42- # Add token expiry if available
4340 if credentials .token_expires_at :
4441 user_table .add_row (
4542 "Token Expires" ,
@@ -48,6 +45,5 @@ def whoami() -> None:
4845 else :
4946 user_table .add_row ("Token Expires" , "Never" )
5047
51- # Create user panel
5248 user_panel = Panel (user_table , title = "User Information" , title_align = "left" )
5349 console .print (user_panel )
You can’t perform that action at this time.
0 commit comments