Skip to main content

execute_command_raw

Function execute_command_raw 

Source
pub fn execute_command_raw(
    cmd: &str,
    error_id: &str,
) -> Result<CommandOutput, ShellExecError>
Expand description

Executes a shell command and returns the full output structure

§Arguments

  • cmd - The shell command to execute
  • error_id - A unique identifier for debugging purposes

§Returns

  • Ok(CommandOutput) - The full output including stdout, stderr, and exit code
  • Err(ShellError) - An error with diagnostic information if the command failed