oxi-cli 0.27.1

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

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

/// 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(())
}