Skip to main content

run_with_prompter

Function run_with_prompter 

Source
pub async fn run_with_prompter<P: Prompter>(
    ctx: &Ctx,
    args: Args,
    prompter: &P,
    interactive: bool,
) -> CmdResult
Expand description

Same as run but with an injectable crate::cmd::init_tui::Prompter and an explicit interactive gate so tests can drive the TUI branches under cargo test (where neither stdin nor stdout is a TTY). Production callers should use run.