mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
headless helpful error
This commit is contained in:
@@ -261,6 +261,8 @@ async fn run_tui(
|
||||
run_recipe_mode(client, cwd, recipe_path, headless).await
|
||||
} else if let Some(prompt) = text_input {
|
||||
run_text_mode(client, cwd, resolved_session, prompt).await
|
||||
} else if headless {
|
||||
anyhow::bail!("--headless requires either --recipe or --text (or piped stdin)")
|
||||
} else {
|
||||
run_interactive_mode(client, cwd, resolved_session, name).await
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user