pub fn check_commands(commands: &[&str]) -> Result<()>