From b490f8f5680914df5ec355f15f70e353766547f7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 5 Dec 2015 22:35:18 +0000 Subject: [PATCH] Added export command --- project/cli.py | 2 +- project/export/__init__.py | 0 project/export/cli.py | 7 +++++++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 project/export/__init__.py create mode 100644 project/export/cli.py diff --git a/project/cli.py b/project/cli.py index 041907d..13fa7f5 100644 --- a/project/cli.py +++ b/project/cli.py @@ -11,7 +11,7 @@ logging.getLogger("requests").setLevel(logging.WARNING) class DotFileCLI(click.MultiCommand): def list_commands(self, ctx): - return ['config', 'sync'] + return ['config', 'sync', 'export'] def get_command(self, ctx, name): ns = {} diff --git a/project/export/__init__.py b/project/export/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/project/export/cli.py b/project/export/cli.py new file mode 100644 index 0000000..3899ad5 --- /dev/null +++ b/project/export/cli.py @@ -0,0 +1,7 @@ +import click +from project.utils import config + +@click.command('export') +@click.argument('sections', nargs=-1) +def cli(sections): + pass