Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/workato_platform_cli/cli/commands/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,9 @@ async def create_oauth(


@connections.command()
@click.option("--connection-id", required=True, help="ID of the connection to update")
@click.option(
"--connection-id", required=True, type=int, help="ID of the connection to update"
)
@click.option("--name", help="New name for the connection")
@click.option(
"--parent-id", help="ID of the parent connection (must be same provider type)"
Expand Down Expand Up @@ -535,7 +537,7 @@ async def update_connection(

@connections.command(name="list")
@click.option("--folder-id", type=int, help="Filter by folder ID")
@click.option("--parent-id", help="Filter by parent connection ID")
@click.option("--parent-id", type=int, help="Filter by parent connection ID")
@click.option("--external-id", help="Filter by external ID")
@click.option(
"--include-runtime", is_flag=True, help="Include runtime user connections"
Expand Down Expand Up @@ -864,7 +866,7 @@ def show_connection_statistics(connections: list[Connection]) -> None:


@connections.command(name="pick-list")
@click.option("--id", required=True, help="Connection ID")
@click.option("--id", required=True, type=int, help="Connection ID")
@click.option("--pick-list-name", required=True, help="Name of the pick list")
@click.option(
"--params",
Expand Down
8 changes: 4 additions & 4 deletions src/workato_platform_cli/cli/commands/recipes/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,11 @@ async def validate(


@recipes.command()
@click.option("--id", "recipe_id", help="Recipe ID to start")
@click.option("--id", "recipe_id", type=int, help="Recipe ID to start")
@click.option(
"--all", "start_all", is_flag=True, help="Start all recipes in current project"
)
@click.option("--folder-id", help="Start all recipes in specified folder")
@click.option("--folder-id", type=int, help="Start all recipes in specified folder")
@handle_cli_exceptions
@handle_api_exceptions
async def start(
Expand Down Expand Up @@ -315,11 +315,11 @@ async def start(


@recipes.command()
@click.option("--id", "recipe_id", help="Recipe ID to stop")
@click.option("--id", "recipe_id", type=int, help="Recipe ID to stop")
@click.option(
"--all", "stop_all", is_flag=True, help="Stop all recipes in current project"
)
@click.option("--folder-id", help="Stop all recipes in specified folder")
@click.option("--folder-id", type=int, help="Stop all recipes in specified folder")
async def stop(
recipe_id: int,
stop_all: bool,
Expand Down
Loading