diff --git a/src/workato_platform_cli/cli/commands/connections.py b/src/workato_platform_cli/cli/commands/connections.py index 83c9181..5eaa4c6 100644 --- a/src/workato_platform_cli/cli/commands/connections.py +++ b/src/workato_platform_cli/cli/commands/connections.py @@ -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)" @@ -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" @@ -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", diff --git a/src/workato_platform_cli/cli/commands/recipes/command.py b/src/workato_platform_cli/cli/commands/recipes/command.py index 3f3c9ba..12a138d 100644 --- a/src/workato_platform_cli/cli/commands/recipes/command.py +++ b/src/workato_platform_cli/cli/commands/recipes/command.py @@ -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( @@ -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,