1
Fork 0

Added export command

This commit is contained in:
Jake Howard 2015-12-05 22:35:18 +00:00
parent b7797157cc
commit b490f8f568
3 changed files with 8 additions and 1 deletions

View file

@ -11,7 +11,7 @@ logging.getLogger("requests").setLevel(logging.WARNING)
class DotFileCLI(click.MultiCommand): class DotFileCLI(click.MultiCommand):
def list_commands(self, ctx): def list_commands(self, ctx):
return ['config', 'sync'] return ['config', 'sync', 'export']
def get_command(self, ctx, name): def get_command(self, ctx, name):
ns = {} ns = {}

View file

7
project/export/cli.py Normal file
View file

@ -0,0 +1,7 @@
import click
from project.utils import config
@click.command('export')
@click.argument('sections', nargs=-1)
def cli(sections):
pass