pub fn validate_command(command: &str) -> Result<()>
Returns an error if command is empty or contains only whitespace.
command