silent_cmd

Function silent_cmd 

Source
pub fn silent_cmd(program: &str) -> Command
Expand description

Creates a Command for program; silences stdout/stderr in release builds.

In debug (debug_assertions), output is inherited for easier troubleshooting. In release, both streams are redirected to Stdio::null() to keep logs quiet.