Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
Show defaults for the --confirmation flags
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Oct 20, 2020
1 parent 125d42f commit 2570b17
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions RELEASE.rst
@@ -0,0 +1,3 @@
RELEASE_TYPE: patch

Show the defaults for the ``--confirmation-wait-for`` and ``--confirmation-interval`` flags.
12 changes: 8 additions & 4 deletions src/deploy/deploy.py
Expand Up @@ -240,9 +240,11 @@ def _get_service_name(service):
@click.option('--description', prompt="Enter a description for this deployment",
help="A description of this deployment", default="No description provided")
@click.option('--confirmation-wait-for',
help="How many seconds to wait for a confirmation for", default=600)
help="How many seconds to wait for a confirmation for", default=600,
show_default=True)
@click.option('--confirmation-interval',
help="How many seconds in an interval before re-confirming a deploy", default=10)
help="How many seconds in an interval before re-confirming a deploy", default=10,
show_default=True)
@click.pass_context
def deploy(ctx, release_id, environment_id, description, confirmation_wait_for, confirmation_interval):
confirm = ctx.obj['confirm']
Expand Down Expand Up @@ -424,9 +426,11 @@ def update(ctx, release_id, service_ids, from_label):
@click.option('--description', prompt="Enter a description for this deployment",
help="A description of this deployment", default="No description provided")
@click.option('--confirmation-wait-for',
help="How many seconds to wait for a confirmation for", default=600)
help="How many seconds to wait for a confirmation for", default=600,
show_default=True)
@click.option('--confirmation-interval',
help="How many seconds in an interval before re-confirming a deploy", default=10)
help="How many seconds in an interval before re-confirming a deploy", default=10,
show_default=True)
@click.pass_context
def release_deploy(ctx, from_label, environment_id, description, confirmation_wait_for, confirmation_interval):
project = ctx.obj['project']
Expand Down

0 comments on commit 2570b17

Please sign in to comment.