Skip to main content

sudo_command

Function sudo_command 

Source
pub fn sudo_command() -> Command
Expand description

Builds a sudo command, passing -n (non-interactive) when stdin isn’t a TTY so a scripted invocation fails fast instead of hanging on a prompt.