2020-04-17 12:11:25 +00:00
|
|
|
use anyhow::{Error};
|
2019-12-06 08:53:14 +00:00
|
|
|
|
|
|
|
use proxmox::api::format::*;
|
|
|
|
use proxmox::api::cli::*;
|
|
|
|
|
|
|
|
use proxmox_backup::backup::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(())
|
|
|
|
}
|