Function shell_helper::command [−][src]
pub fn command(shell: &str, command: &str, name: &str) -> Output
Runs a command
using shell
(sh, bash, zsh, etc), name
is used to make error messages
useful, e.g. command("sh", "sudo pacman -Syyu", "update")
would panic on Failed to execute update
or Failed to wait on update
. Returns output as Output