fn validate(self) -> Result<(ScConfig, ListSpuGroupsConfig), CliError> {

        let target_server = ScConfig::new(self.sc, self.profile)?;

        // transfer config parameters
        let list_spu_group_cfg = ListSpuGroupsConfig {
            output: self.output.unwrap_or(OutputType::default()),
        };

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