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
|
from project.utils import config
|
||||||
|
|
||||||
|
|
||||||
@click.command('config')
|
@click.group('config')
|
||||||
@click.argument('key')
|
def cli():
|
||||||
def cli(key):
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@cli.command('show')
|
||||||
|
@click.argument('key', nargs=-1)
|
||||||
|
def show(key):
|
||||||
|
key = " ".join(key)
|
||||||
print(config.get(key))
|
print(config.get(key))
|
||||||
|
return 0
|
||||||
|
|
Reference in a new issue