pub fn run_command(command: &str, args: &[&str]) -> Result<(), Box<dyn Error>>Expand description
Executes a system command and logs the result.
This function runs a command with the given arguments, logs the execution, and returns an error if the command fails.
§Arguments
command- A string slice containing the command to runargs- A slice of string slices containing the arguments for the command
§Returns
Returns Ok(()) if the command executes successfully, or an error if execution fails.