1
Fork 0

Added show command for config

This commit is contained in:
Jake Howard 2015-12-03 18:18:04 +00:00
parent 6114d17dc3
commit 3dd1b8d755

View file

@ -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