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§
Sourcefn execute_non_interactive(&self) -> Result<String>
fn execute_non_interactive(&self) -> Result<String>
Run the command in non-interactive mode (for CI/testing)
Provided Methods§
Sourcefn is_interactive(&self) -> bool
fn is_interactive(&self) -> bool
Check if the command should run in interactive mode