Skip to content

Commit

Permalink
Be Consistent with Name Option (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
damienrj authored Nov 1, 2024
1 parent 1fc9b61 commit a8d95fb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 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 @@ -259,6 +259,7 @@ def list_configs(
context: click.Context,
project: Optional[str],
location: Optional[str],
cluster: str,
**kwargs,
):
"""List workstation configurations."""
Expand All @@ -267,7 +268,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 +302,7 @@ def list(
all: bool,
user: str,
export_json: bool,
cluster: Optional[str],
cluster: str,
**kwargs,
):
"""List workstations."""
Expand Down Expand Up @@ -424,6 +425,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 +444,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 +466,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 a8d95fb

Please sign in to comment.