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:
Wolfgang Bumiller
2020-06-16 14:41:28 +02:00
parent 7f17f7444a
commit 8ecd7c9c21
3 changed files with 0 additions and 0 deletions

View 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(())
}

View 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(())
}

View 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(())
}