Skip to content

Commit 22d6088

Browse files
authored
CM-13544 - texts for auth command (#21)
add auth texts
1 parent bd30010 commit 22d6088

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/auth/auth_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
@click.command()
99
@click.pass_context
1010
def 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

0 commit comments

Comments
 (0)