forked from cerc-io/stack-orchestrator
Clean up
This commit is contained in:
parent
b0fc8da64d
commit
5890b3f06a
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -34,7 +34,7 @@ def include_exclude_check(s, include, exclude):
|
||||
@click.command()
|
||||
@click.option('--include', help="only start these components")
|
||||
@click.option('--exclude', help="don\'t start these components")
|
||||
@click.argument('command' help="command: up|down|ps")
|
||||
@click.argument('command') # help: command: up|down|ps
|
||||
@click.pass_context
|
||||
def command(ctx, include, exclude, command):
|
||||
'''deploy a stack'''
|
||||
|
@ -47,19 +47,19 @@ def is_git_repo(path):
|
||||
# )
|
||||
|
||||
@click.command()
|
||||
@click.option('--check-only', default=False)
|
||||
@click.option('--pull', default=False)
|
||||
@click.option('--check-only', is_flag=True, default=False)
|
||||
@click.option('--pull', is_flag=True, default=False)
|
||||
@click.pass_context
|
||||
def command(ctx, check_only, pull):
|
||||
'''git clone the set of repositories required to build the complete system from source'''
|
||||
|
||||
quiet = ctx.obj.quiet
|
||||
verbose = ctx.obj.verbose
|
||||
dry_run = ctx.obj.verbose
|
||||
dry_run = ctx.obj.dry_run
|
||||
|
||||
dev_root_path = os.path.expanduser(config("DEV_ROOT", default="~/cerc"))
|
||||
|
||||
if not args.quiet:
|
||||
if not quiet:
|
||||
print(f'Dev Root is: {dev_root_path}')
|
||||
|
||||
if not os.path.isdir(dev_root_path):
|
||||
|
6
cli.py
6
cli.py
@ -28,9 +28,9 @@ class Options(object):
|
||||
self.dry_run = dry_run
|
||||
|
||||
@click.group(context_settings=CONTEXT_SETTINGS)
|
||||
@click.option('--quiet', default=False)
|
||||
@click.option('--verbose', default=False)
|
||||
@click.option('--dry-run', default=False)
|
||||
@click.option('--quiet', is_flag=True, default=False)
|
||||
@click.option('--verbose', is_flag=True, default=False)
|
||||
@click.option('--dry-run', is_flag=True, default=False)
|
||||
# See: https://click.palletsprojects.com/en/8.1.x/complex/#building-a-git-clone
|
||||
@click.pass_context
|
||||
def cli(ctx, quiet, verbose, dry_run):
|
||||
|
Loading…
Reference in New Issue
Block a user