tape: add command line interface proxmox-tape

This commit is contained in:
Dietmar Maurer
2020-12-09 12:58:43 +01:00
parent 43cfb3c35a
commit e6604cf391
4 changed files with 707 additions and 0 deletions

22
src/bin/proxmox-tape.rs Normal file
View File

@ -0,0 +1,22 @@
use proxmox::{
api::{
cli::*,
RpcEnvironment,
},
};
mod proxmox_tape;
use proxmox_tape::*;
fn main() {
let cmd_def = CliCommandMap::new()
.insert("changer", changer_commands())
.insert("drive", drive_commands())
;
let mut rpcenv = CliEnvironment::new();
rpcenv.set_auth_id(Some(String::from("root@pam")));
proxmox_backup::tools::runtime::main(run_async_cli_command(cmd_def, rpcenv));
}