fn build_command_info( command: &Command, parent_path: &[String], registry: &CommandRegistry, ) -> CommandInfo