Skip to content

Commit

Permalink
Remove duplicate options from process and deploy (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhuth authored Jul 6, 2021
1 parent cfa1f60 commit 856eef6
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions bonfire/bonfire.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,6 @@ def _validate_set_image_tag(ctx, param, value):
multiple=True,
callback=_validate_set_parameter,
),
click.option(
"--namespace",
"-n",
help="Namespace you intend to deploy to (default: none)",
type=str,
),
click.option(
"--clowd-env",
"-e",
Expand All @@ -313,15 +307,6 @@ def _validate_set_image_tag(ctx, param, value):
default=None,
),
_app_source_options[2],
click.option(
"--target-env",
help=(
f"When using source={APP_SRE_SRC}, name of environment to fetch templates for"
f" (default: {conf.EPHEMERAL_ENV_NAME})"
),
type=str,
default=conf.EPHEMERAL_ENV_NAME,
),
click.option(
"--ref-env",
help=f"Query {APP_SRE_SRC} for apps in this environment and substitute 'ref'/'IMAGE_TAG'",
Expand Down Expand Up @@ -621,6 +606,12 @@ def _process(

@main.command("process")
@options(_process_options)
@click.option(
"--namespace",
"-n",
help="Namespace you intend to deploy to (default: none)",
type=str,
)
def _cmd_process(
app_names,
source,
Expand Down

0 comments on commit 856eef6

Please sign in to comment.