-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
138bebb
commit 513e8da
Showing
1 changed file
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,61 @@ | ||
import click | ||
from commands import logger | ||
|
||
@click.group("A goup of commands for credentials and tokens.") | ||
@click.group(help="A group of commands for managing credentials and tokens.") | ||
def cache(): | ||
""" | ||
A goup of commands for credentials and tokens. | ||
A group of commands for managing credentials and tokens. | ||
""" | ||
pass | ||
|
||
@click.command(help="Add credentials to the cache.") | ||
def add_credential(): | ||
pass | ||
|
||
@click.command(help="Update an existing credential.") | ||
def reset_credential(): | ||
pass | ||
|
||
@click.command(help="Delete an existing credential.") | ||
def delete_credential(): | ||
pass | ||
|
||
@click.command(help="Add a token.") | ||
def add_token(): | ||
pass | ||
|
||
@click.command(help="Delete a token.") | ||
def delete_token(): | ||
pass | ||
|
||
@click.command(help="View all existing credentials.") | ||
def view_credentials(): | ||
pass | ||
|
||
@click.command(help="View all existing tokens.") | ||
def view_tokens(): | ||
pass | ||
|
||
@click.command(help="Delete a specific credential.") | ||
def clear_credentials(): | ||
pass | ||
|
||
@click.command(help="Delete a speficic token.") | ||
def clear_tokens(): | ||
pass | ||
|
||
# ===== COMMANDS =============== | ||
|
||
# Add commands to cache group | ||
cache.add_command(add_credential) | ||
cache.add_command(reset_credential) | ||
cache.add_command(delete_credential) | ||
cache.add_command(add_token) | ||
cache.add_command(delete_token) | ||
cache.add_command(view_credentials) | ||
cache.add_command(view_tokens) | ||
cache.add_command(clear_credentials) | ||
cache.add_command(clear_tokens) | ||
|
||
if __name__ == "__main__": | ||
cache() | ||
cache() |