pub fn format_spu_response_output<O>(
    out: std::sync::Arc<O>,
    spus: Vec<Metadata<SpuSpec>>,
    output_type: OutputType,
) -> Result<(), ClusterCliError>
where
    O: Terminal,
{
    if !spus.is_empty() {
        let spu_list = ListSpus(spus);
        out.render_list(&spu_list, output_type)?;
    } else {
        t_println!(out, "no spu");
    }

    Ok(())
}
/// Process server based on output type
Process server based on output type
Process server based on output type
pub fn format_spu_response_output<O>(
    out: std::sync::Arc<O>,
    spus: Vec<Metadata<SpuSpec>>,
    output_type: OutputType,
) -> Result<(), ClusterCliError>
where
    O: Terminal,
{
    if !spus.is_empty() {
        let spu_list = ListSpus(spus);
        out.render_list(&spu_list, output_type)?;
    } else {
        t_println!(out, "no spu");
    }
    Ok(())
}
pub fn format_spu_response_output < O > ( out : std :: sync :: Arc < O > , spus : Vec < Metadata < SpuSpec > > , output_type : OutputType , ) -> Result < ( ) , ClusterCliError > where O : Terminal , { if ! spus . is_empty ( ) { let spu_list = ListSpus ( spus ) ; out . render_list ( & spu_list , output_type ) ? ; } else { t_println ! ( out " " ) ; } Ok ( ( ) ) }
Process server based on output type
Process server based on output type
out
std::sync::Arc<O>
spus
Vec<Metadata<SpuSpec>>
output_type
OutputType
out
std::sync::Arc<O>
spus
Vec<Metadata<SpuSpec>>
output_type
OutputType