Skip to content

Commit

Permalink
Add --delete-volumes option to the down command (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
dboreham authored Jul 20, 2023
1 parent 54f50aa commit 950857f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 <service1> <service2>
@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()
Expand Down

0 comments on commit 950857f

Please sign in to comment.