/// Process the command options and retirieve the data accordingly
Process the command options and retirieve the data accordingly
Process the command options and retirieve the data accordingly
pub fn process_vo(
    client: &mut RestClient,
    matches: &ArgMatches,
) -> Result<String, serde_json::error::Error> {
    if matches.is_present("all") {
        let vos: VirtualOrganisations = client.get(()).unwrap();
        return to_string_pretty(&vos);
    }
    let vsc_id = matches
        .value_of("vscid")
        .expect("You should provide a vsc id if not getting non-specific account info");
    let vo : VirtualOrganisation = client.get(&VscIDA(vsc_id.to_string())).unwrap();
    return to_string_pretty(&vo);
}
pub fn process_vo ( client : & mut RestClient , matches : & ArgMatches , ) -> Result < String , serde_json :: error :: Error > { if matches . is_present ( " " ) { let vos : VirtualOrganisations = client . get ( ( ) ) . unwrap ( ) ; return to_string_pretty ( & vos ) ; } let vsc_id = matches . value_of ( " " ) . expect ( " " ) ; let vo : VirtualOrganisation = client . get ( & VscIDA ( vsc_id . to_string ( ) ) ) . unwrap ( ) ; return to_string_pretty ( & vo ) ; }
Process the command options and retirieve the data accordingly
Process the command options and retirieve the data accordingly
client
&mut RestClient
matches
&ArgMatches