aico/commands/generate.rs
1use crate::exceptions::AicoError;
2use crate::models::Mode;
3
4pub async fn run(
5 cli_prompt: Option<String>,
6 model: Option<String>,
7 system_prompt: String,
8 no_history: bool,
9 passthrough: bool,
10) -> Result<(), AicoError> {
11 crate::commands::llm_shared::run_llm_flow(
12 cli_prompt,
13 model,
14 system_prompt,
15 no_history,
16 passthrough,
17 Mode::Diff,
18 )
19 .await
20}