DependencyChecker

Trait DependencyChecker 

Source
pub trait DependencyChecker {
    // Required method
    fn check_command(&self, cmd: &str, args: &[&str]) -> bool;
}
Expand description

Trait for checking command availability.

Enables mocking in tests to verify both success and failure paths.

Required Methods§

Source

fn check_command(&self, cmd: &str, args: &[&str]) -> bool

Check if a command is available and working.

§Arguments
  • cmd - The command to run
  • args - Arguments to pass to the command
§Returns

true if the command exits successfully, false otherwise.

Implementors§