Add --delete-volumes option to the down command (#461)

This commit is contained in:
David Boreham 2023-07-20 06:25:31 -06:00 committed by GitHub
parent 54f50aa09e
commit 950857fa84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,12 +85,13 @@ def down(ctx, delete_volumes, extra_args):
# stop is the preferred alias for down # stop is the preferred alias for down
@command.command() @command.command()
@click.option("--delete-volumes/--preserve-volumes", default=False, help="delete data volumes")
@click.argument('extra_args', nargs=-1) # help: command: down <service1> <service2> @click.argument('extra_args', nargs=-1) # help: command: down <service1> <service2>
@click.pass_context @click.pass_context
def stop(ctx, extra_args): def stop(ctx, delete_volumes, extra_args):
# TODO: add cluster name and env file here # TODO: add cluster name and env file here
ctx.obj = make_deploy_context(ctx) ctx.obj = make_deploy_context(ctx)
down_operation(ctx, extra_args, None) down_operation(ctx, delete_volumes, extra_args, None)
@command.command() @command.command()