pub fn extract_success_output(output: &Output) -> Result<String>
Extracts and validates successful command output, converting it to a trimmed string.