Added show command for config
This commit is contained in:
parent
6114d17dc3
commit
3dd1b8d755
1 changed files with 10 additions and 3 deletions
|
@ -2,7 +2,14 @@ import click
|
|||
from project.utils import config
|
||||
|
||||
|
||||
@click.command('config')
|
||||
@click.argument('key')
|
||||
def cli(key):
|
||||
@click.group('config')
|
||||
def cli():
|
||||
pass
|
||||
|
||||
|
||||
@cli.command('show')
|
||||
@click.argument('key', nargs=-1)
|
||||
def show(key):
|
||||
key = " ".join(key)
|
||||
print(config.get(key))
|
||||
return 0
|
||||
|
|
Reference in a new issue