mirror of
https://github.com/simonw/dclient.git
synced 2026-07-25 10:24:33 +02:00
Better help for dclient auth add
This commit is contained in:
parent
d58100a0d5
commit
5a370b725e
1 changed files with 10 additions and 1 deletions
|
|
@ -137,7 +137,16 @@ def auth():
|
|||
@click.argument("alias_or_url")
|
||||
@click.option("--token", prompt=True, hide_input=True)
|
||||
def add(alias_or_url, token):
|
||||
"Add an authentication token"
|
||||
"""
|
||||
Add an authentication token for an alias or URL
|
||||
|
||||
Example usage:
|
||||
|
||||
\b
|
||||
dclient auth add https://datasette.io/content
|
||||
|
||||
Paste in the token when prompted.
|
||||
"""
|
||||
aliases_file = get_config_dir() / "aliases.json"
|
||||
aliases = _load_aliases(aliases_file)
|
||||
url = alias_or_url
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue