From b1ee021115a563b0c8a54f02bfc065ab59693b7d Mon Sep 17 00:00:00 2001 From: Michael Shaw Date: Thu, 29 Sep 2022 15:05:28 -0400 Subject: [PATCH] incomplete local_stack option --- cli.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cli.py b/cli.py index 057ce1a3..04cde0ce 100644 --- a/cli.py +++ b/cli.py @@ -22,20 +22,23 @@ from app import deploy_system CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help']) class Options(object): - def __init__(self, quiet, verbose, dry_run): + def __init__(self, quiet, verbose, dry_run, local_stack): self.quiet = quiet self.verbose = verbose self.dry_run = dry_run + self.local_stack = local_stack @click.group(context_settings=CONTEXT_SETTINGS) @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) +@click.option('--local_stack', 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): +def cli(ctx, quiet, verbose, dry_run, local_stack): """Laconic Stack Orchestrator""" - ctx.obj = Options(quiet, verbose, dry_run) + ctx.obj = Options(quiet, verbose, dry_run, local_stack) cli.add_command(setup_repositories.command,"setup-repositories") cli.add_command(build_containers.command,"build-containers")