Skip to content

Commit 165e1d5

Browse files
committed
Improve messages printed to the user
1 parent c681af1 commit 165e1d5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

keep/commands/cmd_github_token.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@ def cli(ctx):
2020
abort=True):
2121
os.remove(dir_path)
2222

23-
token = click.prompt('Create a GitHub token with permission to Gists and paste here ')
23+
token = click.prompt('Create a GITHUB TOKEN with permission to Gists and paste here ')
2424
gist_id = existing_token.get('gist') if existing_token else None
25-
prompt_str = 'If you already have a GitHub gist created by keep, paste the Gist ID here, or else press Enter '
25+
click.echo("\nAwesome! Your GitHub token has been registered. Now, we need a GIST ID to store the commands in keep.")
26+
prompt_str = 'If you already have a GitHub Gist created by keep, paste the GIST ID here, or else press Enter (we will create a Gist for you). '
2627
new_gist_id = click.prompt(prompt_str, default='', show_default=False)
2728

2829
if new_gist_id:
@@ -39,4 +40,5 @@ def cli(ctx):
3940
json.dump({'token': token, 'gist': gist_id}, f)
4041

4142
click.echo("Done! Gist URL - https://gist.github.com/" + gist_id)
43+
click.echo("Your token and gist ID has been stored inside ~/.keep/.credentials")
4244
click.echo("You can now use `keep push` or `keep pull`")

keep/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def check_update(ctx, forced=False):
5151

5252

5353
def first_time_use(ctx):
54-
click.secho("Initializing environment in ~/.keep directory", fg='green')
54+
click.secho("Detected fresh installation. Initializing environment in ~/.keep directory", fg='green')
5555
for _ in range(2):
5656
click.echo('.', nl=False)
5757
time.sleep(0.5)

0 commit comments

Comments
 (0)