Skip to main content

wrap_command_with_user

Function wrap_command_with_user 

Source
pub fn wrap_command_with_user(command: &str, user: Option<&str>) -> String
Expand description

Wrap command with sudo -u if user option is specified