oxi-cli 0.27.0

Terminal-based AI coding assistant — multi-provider, streaming-first, extensible
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Single-prompt helper shared by the binary entry and integration tests.
//!
//! Kept separate from `bootstrap.rs` because it is also called by tests.

use anyhow::Result;
use crate::App;

/// Run a single prompt and print the response.
pub async fn run_single_prompt(app: App, prompt: &str) -> Result<()> {
    let response = app.run_prompt_with_events(prompt.to_string(), |_event| {}).await?;
    println!("{response}");
    Ok(())
}