pub fn validate_command(command: &str) -> Result<(), String>
Validate a snippet command: non-empty, no control characters (except tab).