src/bin/dump-catalog-shell-cli.rs: generate catalog shell docs
This commit is contained in:
parent
55c3cb69cd
commit
d75fbb0a21
20
src/bin/dump-catalog-shell-cli.rs
Normal file
20
src/bin/dump-catalog-shell-cli.rs
Normal file
@ -0,0 +1,20 @@
|
||||
use failure::*;
|
||||
|
||||
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(())
|
||||
}
|
Loading…
Reference in New Issue
Block a user