pub fn spu_group_response_to_output<O: Terminal>(
        out: std::sync::Arc<O>,
        list_spu_groups: Vec<Metadata<SpuGroupSpec>>,
        output_type: OutputType,
    ) -> Result<(), ClusterCliError> {
        debug!("groups: {:#?}", list_spu_groups);

        if !list_spu_groups.is_empty() {
            let groups = ListSpuGroups(list_spu_groups);
            out.render_list(&groups, output_type)?;
            Ok(())
        } else {
            t_println!(out, "no groups");
            Ok(())
        }
    }
/// Format SPU Group based on output type
Format SPU Group based on output type
Format SPU Group based on output type
pub fn spu_group_response_to_output<O: Terminal>(
        out: std::sync::Arc<O>,
        list_spu_groups: Vec<Metadata<SpuGroupSpec>>,
        output_type: OutputType,
    ) -> Result<(), ClusterCliError> {
        debug!("groups: {:#?}", list_spu_groups);
        if !list_spu_groups.is_empty() {
            let groups = ListSpuGroups(list_spu_groups);
            out.render_list(&groups, output_type)?;
            Ok(())
        } else {
            t_println!(out, "no groups");
            Ok(())
        }
    }
pub fn spu_group_response_to_output < O : Terminal > ( out : std :: sync :: Arc < O > , list_spu_groups : Vec < Metadata < SpuGroupSpec > > , output_type : OutputType , ) -> Result < ( ) , ClusterCliError > { debug ! ( " " list_spu_groups ) ; if ! list_spu_groups . is_empty ( ) { let groups = ListSpuGroups ( list_spu_groups ) ; out . render_list ( & groups , output_type ) ? ; Ok ( ( ) ) } else { t_println ! ( out " " ) ; Ok ( ( ) ) } }
Format SPU Group based on output type
Format SPU Group based on output type
out
std::sync::Arc<O>
list_spu_groups
Vec<Metadata<SpuGroupSpec>>
output_type
OutputType
out
std::sync::Arc<O>
list_spu_groups
Vec<Metadata<SpuGroupSpec>>
output_type
OutputType