Add --delete-volumes option to the down command (#461)
Publish / Build and publish (push) Successful in 55s Details
Deploy Test / Run deploy test suite (push) Successful in 4m7s Details
Smoke Test / Run basic test suite (push) Successful in 3m21s Details

pull/444/head^2 v1.1.0-950857f-202307201225
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
1 changed files with 3 additions and 2 deletions

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()