Skip to content

Commit

Permalink
Be Consistent with Name Option
Browse files Browse the repository at this point in the history
  • Loading branch information
damienrj committed Nov 1, 2024
1 parent 1fc9b61 commit fd39931
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/workstation/cli/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def common_options(func): # noqa: D103
@click.pass_context
def create(
context: click.Context,
cluster: Optional[str],
cluster: str,
config: str,
location: Optional[str],
name: str,
Expand Down Expand Up @@ -267,7 +267,7 @@ def list_configs(

project, location, account = get_gcloud_config(project=project, location=location)
configs = list_workstation_configs(
cluster=kwargs["cluster"],
cluster=cluster,
project=project,
location=location,
)
Expand Down Expand Up @@ -301,7 +301,7 @@ def list(
all: bool,
user: str,
export_json: bool,
cluster: Optional[str],
cluster: str,
**kwargs,
):
"""List workstations."""
Expand Down Expand Up @@ -424,6 +424,7 @@ def start(context: click.Context, name: str, code: bool, browser: bool, **kwargs

@command()
@click.option(
"-n",
"--name",
help="Name of the workstation to stop.",
type=str,
Expand All @@ -442,6 +443,7 @@ def stop(context: click.Context, **kwargs):

@command()
@click.option(
"-n",
"--name",
help="Name of the workstation to delete.",
type=str,
Expand All @@ -463,6 +465,7 @@ def delete(context: click.Context, **kwargs):

@command()
@click.option(
"-n",
"--name",
help="Name of the workstation to sync.",
type=str,
Expand Down

0 comments on commit fd39931

Please sign in to comment.