This repository was archived by the owner on Aug 11, 2020. It is now read-only.
File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 5
5
from paperspace .cli .cli import cli
6
6
from paperspace .commands import login as login_commands
7
7
8
- LOGIN_DEPRECATION_MESSAGE = """The login command is currently disabled for logging in with `--email` and `--password`.
8
+ LOGIN_DEPRECATION_MESSAGE = """The login command is currently disabled for logging in using `--email` and `--password`.
9
9
10
- Instead, obtain an API Key from https://www.paperspace.com/console/account/api and then use the `apiKey` command to store your API Key.
10
+ Instead, obtain an API Key from https://www.paperspace.com/console/account/api.
11
+
12
+ Then use the `apiKey` command to save your API Key locally.
11
13
12
14
Visit the docs @ https://docs.paperspace.com for more info!"""
13
15
@@ -39,7 +41,7 @@ def logout():
39
41
40
42
41
43
@cli .command ("apiKey" , help = "Save your api key" )
42
- @click .argument ("api_key" , required = False , callback = common .prompt_for_secret ("API Key: " ))
44
+ @click .argument ("api_key" , required = False , callback = common .prompt_for_secret ("Enter your API Key: " ))
43
45
def save_api_key (api_key ):
44
46
command = login_commands .SetApiKeyCommand ()
45
47
command .execute (api_key )
Original file line number Diff line number Diff line change @@ -125,6 +125,8 @@ def set_apikey(apikey):
125
125
json .dump (config_data , outfile , indent = 2 , sort_keys = True )
126
126
outfile .write ('\n ' )
127
127
128
+ logger .log ("Successfully added API Key to {}. You're ready to go!" .format (config_path ))
129
+
128
130
return True
129
131
130
132
You can’t perform that action at this time.
0 commit comments