Trait Interactive

Source
pub trait Interactive: Command {
    // Required method
    fn execute_non_interactive(&self) -> Result<String>;

    // Provided method
    fn is_interactive(&self) -> bool { ... }
}
Expand description

Trait for commands that support interactive mode

Required Methods§

Source

fn execute_non_interactive(&self) -> Result<String>

Run the command in non-interactive mode (for CI/testing)

Provided Methods§

Source

fn is_interactive(&self) -> bool

Check if the command should run in interactive mode

Implementors§