Function execute_command_in_directory

Source
pub fn execute_command_in_directory(dir: &Path, command: &[String]) -> i32
Expand description

Executes the specified command in the given directory.

This function runs the provided command in the specified directory, handling different shell configurations and providing appropriate output based on the command’s success or failure.