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