From 950857fa846c9586f652949fd9078b907b9d7a8c Mon Sep 17 00:00:00 2001 From: David Boreham Date: Thu, 20 Jul 2023 06:25:31 -0600 Subject: [PATCH] Add --delete-volumes option to the down command (#461) --- app/deployment.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/deployment.py b/app/deployment.py index ccb11f51..eef12222 100644 --- a/app/deployment.py +++ b/app/deployment.py @@ -85,12 +85,13 @@ def down(ctx, delete_volumes, extra_args): # stop is the preferred alias for down @command.command() +@click.option("--delete-volumes/--preserve-volumes", default=False, help="delete data volumes") @click.argument('extra_args', nargs=-1) # help: command: down @click.pass_context -def stop(ctx, extra_args): +def stop(ctx, delete_volumes, extra_args): # TODO: add cluster name and env file here ctx.obj = make_deploy_context(ctx) - down_operation(ctx, extra_args, None) + down_operation(ctx, delete_volumes, extra_args, None) @command.command()