move api dump binaries back to src/bin for package building
they're required for docs Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
14
src/bin/dump-backup-api.rs
Normal file
14
src/bin/dump-backup-api.rs
Normal file
@ -0,0 +1,14 @@
|
||||
use anyhow::{Error};
|
||||
|
||||
use proxmox::api::format::*;
|
||||
|
||||
use proxmox_backup::api2;
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
|
||||
let api = api2::backup::BACKUP_API_ROUTER;
|
||||
|
||||
dump_api(&mut std::io::stdout(), &api, ".", 0)?;
|
||||
|
||||
Ok(())
|
||||
}
|
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 anyhow::{Error};
|
||||
|
||||
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(())
|
||||
}
|
14
src/bin/dump-reader-api.rs
Normal file
14
src/bin/dump-reader-api.rs
Normal file
@ -0,0 +1,14 @@
|
||||
use anyhow::{Error};
|
||||
|
||||
use proxmox::api::format::dump_api;
|
||||
|
||||
use proxmox_backup::api2;
|
||||
|
||||
fn main() -> Result<(), Error> {
|
||||
|
||||
let api = api2::reader::READER_API_ROUTER;
|
||||
|
||||
dump_api(&mut std::io::stdout(), &api, ".", 0)?;
|
||||
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user