/// Validate cli options and generate config
Validate cli options and generate config
Validate cli options and generate config
fn validate(self) -> Result<(SpuControllerConfig, ListTopicsConfig), CliError> {
        let target_server = SpuControllerConfig::new(self.sc, self.kf, self.profile)?;
        // transfer config parameters
        let list_topics_cfg = ListTopicsConfig {
            output: self.output.unwrap_or(OutputType::default()),
        };
        // return server separately from topic result
        Ok((target_server, list_topics_cfg))
    }
fn validate ( self ) -> Result < ( SpuControllerConfig , ListTopicsConfig ) , CliError > { let target_server = SpuControllerConfig :: new ( self . sc , self . kf , self . profile ) ? ; // transfer config parameters let list_topics_cfg = ListTopicsConfig { output : self . output . unwrap_or ( OutputType :: default ( ) ) , } ; // return server separately from topic result Ok ( ( target_server , list_topics_cfg ) ) }
Validate cli options and generate config
Validate cli options and generate config
self