Added project and sync command definitions
This commit is contained in:
parent
42e422e53a
commit
0b87022791
5 changed files with 14 additions and 1 deletions
|
@ -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 []
|
return ['config', 'sync']
|
||||||
|
|
||||||
def get_command(self, ctx, name):
|
def get_command(self, ctx, name):
|
||||||
ns = {}
|
ns = {}
|
||||||
|
|
0
project/config/__init__.py
Normal file
0
project/config/__init__.py
Normal file
7
project/config/cli.py
Normal file
7
project/config/cli.py
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import click
|
||||||
|
|
||||||
|
CONFIG_DIR = "~/.dfa.conf"
|
||||||
|
|
||||||
|
@click.command('sync')
|
||||||
|
def cli():
|
||||||
|
pass
|
0
project/sync/__init__.py
Normal file
0
project/sync/__init__.py
Normal file
6
project/sync/cli.py
Normal file
6
project/sync/cli.py
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import click
|
||||||
|
|
||||||
|
|
||||||
|
@click.command('sync')
|
||||||
|
def cli():
|
||||||
|
pass
|
Reference in a new issue