Trait DryRunnable

Source
pub trait DryRunnable: Command {
    // Required methods
    fn execute_dry_run(&self) -> Result<String>;
    fn is_dry_run(&self) -> bool;
}
Expand description

Trait for commands that support dry-run mode

Required Methods§

Source

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

Execute the command in dry-run mode

Source

fn is_dry_run(&self) -> bool

Check if dry-run mode is enabled

Implementors§