Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
refactored skyvern workflow start cli (#2615)
Prakash Maheshwaranaa933dc26118
diff --git a/skyvern/cli/workflow.py b/skyvern/cli/workflow.pyindex f025b4aa7..7e307a1af 100644--- a/skyvern/cli/workflow.py+++ b/skyvern/cli/workflow.py@@ -40,15 +40,15 @@ def _get_client(api_key: str | None = None) -> Skyvern:return Skyvern(base_url=settings.SKYVERN_BASE_URL, api_key=key)-@workflow_app.command("start")-def start_workflow(+@workflow_app.command("run")+def run_workflow(ctx: typer.Context,workflow_id: str = typer.Argument(..., help="Workflow permanent ID"),parameters: str = typer.Option("{}", "--parameters", "-p", help="JSON parameters for the workflow"),title: str | None = typer.Option(None, "--title", help="Title for the workflow run"),max_steps: int | None = typer.Option(None, "--max-steps", help="Override the workflow max steps"),) -> None:- """Dispatch a workflow run."""+ """Run a workflow."""try:params_dict = json.loads(parameters) if parameters else {}except json.JSONDecodeError: