File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 88@click .command ()
99@click .pass_context
1010def authenticate (context : click .Context ):
11- """ Initial command to authenticate your CLI - TODO better text """
11+ """ Authenticates your machine to associate CLI with your cycode account """
1212 try :
1313 logger .debug ("starting authentication process" )
1414 auth_manager = AuthManager ()
1515 auth_manager .authenticate ()
16- click .echo ("success TODO TEXT " )
16+ click .echo ("Successfully logged into cycode " )
1717 except Exception as e :
1818 _handle_exception (context , e )
1919
@@ -23,10 +23,10 @@ def _handle_exception(context: click.Context, e: Exception):
2323 if verbose :
2424 click .secho (f'Error: { traceback .format_exc ()} ' , fg = 'red' , nl = False )
2525 if isinstance (e , AuthProcessError ):
26- click .secho ('Authentication process has failed. Please try again by executing the `cycode auth` command ' ,
26+ click .secho ('Authentication failed. Please try again later using the command `cycode auth`' ,
2727 fg = 'red' , nl = False )
2828 elif isinstance (e , CycodeError ):
29- click .secho ('TBD message . Please try again by executing the `cycode auth` command ' ,
29+ click .secho ('Authentication failed . Please try again later using the command `cycode auth`' ,
3030 fg = 'red' , nl = False )
3131 elif isinstance (e , click .ClickException ):
3232 raise e
You can’t perform that action at this time.
0 commit comments