proxmox-backup/proxmox-backup-client/src/bin/dump-catalog-shell-cli.rs
Thomas Lamprecht f9a5beaa15 backup client: rustfmt
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2022-04-14 14:06:15 +02:00

19 lines
421 B
Rust

use anyhow::Error;
use proxmox_router::cli::*;
use proxmox_schema::format::*;
use pbs_client::catalog_shell::catalog_shell_cli;
fn main() -> Result<(), Error> {
match catalog_shell_cli() {
CommandLineInterface::Nested(map) => {
let usage = generate_nested_usage("", &map, DocumentationFormat::ReST);
println!("{}", usage);
}
_ => unreachable!(),
}
Ok(())
}