]> git.proxmox.com Git - proxmox-backup.git/blame - src/bin/proxmox-tape.rs
tape: add command line interface proxmox-tape
[proxmox-backup.git] / src / bin / proxmox-tape.rs
CommitLineData
e6604cf3
DM
1use proxmox::{
2 api::{
3 cli::*,
4 RpcEnvironment,
5 },
6};
7
8mod proxmox_tape;
9use proxmox_tape::*;
10
11fn main() {
12
13 let cmd_def = CliCommandMap::new()
14 .insert("changer", changer_commands())
15 .insert("drive", drive_commands())
16 ;
17
18 let mut rpcenv = CliEnvironment::new();
19 rpcenv.set_auth_id(Some(String::from("root@pam")));
20
21 proxmox_backup::tools::runtime::main(run_async_cli_command(cmd_def, rpcenv));
22}