From 3dd1b8d7555ff8db50a723d29399e307dd2e9b9e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 3 Dec 2015 18:18:04 +0000 Subject: [PATCH] Added show command for config --- project/config/cli.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/project/config/cli.py b/project/config/cli.py index c0ecb1b..78fd6db 100644 --- a/project/config/cli.py +++ b/project/config/cli.py @@ -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