@@ -196,6 +196,7 @@ def explain(
196196
197197@app .command ()
198198def analyze (
199+ prompt : list [str ] = typer .Argument (None , help = "Custom prompt or focus instructions for analysis" ),
199200 files : list [Path ] = typer .Option (None , "--file" , "-f" , help = "Files to analyze" ),
200201 provider : str | None = typer .Option (None , "--provider" , "-p" , help = "Pin to a specific provider" ),
201202):
@@ -217,7 +218,7 @@ def analyze(
217218 print_error ("Provide files with -f or pipe stdout into 'eva analyze'." )
218219 raise typer .Exit (1 )
219220
220- query = "Analyze the provided content, identify issues, and suggest solutions."
221+ query = " " . join ( prompt ) if prompt else " Analyze the provided content, identify issues, and suggest solutions."
221222 stream = dispatch (ANALYZE_SYSTEM_PROMPT , query , context , config , pinned_provider = provider )
222223 result = stream_response (stream )
223224 if is_ai_error (result ):
@@ -226,6 +227,7 @@ def analyze(
226227 print_markdown (result )
227228
228229
230+
229231@app .command ()
230232def chat (
231233 provider : str | None = typer .Option (None , "--provider" , "-p" , help = "Pin to a specific provider" ),
@@ -676,6 +678,7 @@ def show_budget():
676678@workflow_app .command ("run" )
677679def workflow_run_cmd (
678680 name : str = typer .Argument (..., help = "Workflow name or YAML file path" ),
681+ yes : bool = typer .Option (False , "--yes" , "-y" , help = "Auto-approve all steps without interactive prompts" ),
679682 provider : str | None = typer .Option (None , "--provider" , "-p" , help = "Pin to a specific provider" ),
680683):
681684 """Walk through workflow steps with an approval gate between each step."""
@@ -686,7 +689,7 @@ def workflow_run_cmd(
686689 print_error (str (exc ))
687690 raise typer .Exit (1 ) from exc
688691
689- results = run_workflow (wf , config = config , interactive = True )
692+ results = run_workflow (wf , config = config , interactive = not yes )
690693 failed = [r for r in results if r .get ("status" ) in {"failed" , "blocked_unsafe" , "blocked_ambiguous" }]
691694 if failed :
692695 raise typer .Exit (1 )
0 commit comments