2022-04-14 12:06:15 +00:00
|
|
|
use anyhow::Error;
|
2019-12-06 08:53:14 +00:00
|
|
|
|
2021-10-08 09:19:37 +00:00
|
|
|
use proxmox_router::cli::*;
|
|
|
|
use proxmox_schema::format::*;
|
2019-12-06 08:53:14 +00:00
|
|
|
|
2021-07-19 08:50:18 +00:00
|
|
|
use pbs_client::catalog_shell::catalog_shell_cli;
|
2019-12-06 08:53:14 +00:00
|
|
|
|
|
|
|
fn main() -> Result<(), Error> {
|
|
|
|
match catalog_shell_cli() {
|
|
|
|
CommandLineInterface::Nested(map) => {
|
|
|
|
let usage = generate_nested_usage("", &map, DocumentationFormat::ReST);
|
|
|
|
println!("{}", usage);
|
|
|
|
}
|
|
|
|
_ => unreachable!(),
|
|
|
|
}
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|