]>
Commit | Line | Data |
---|---|---|
e6604cf3 DM |
1 | use proxmox::{ |
2 | api::{ | |
3 | cli::*, | |
4 | RpcEnvironment, | |
5 | }, | |
6 | }; | |
7 | ||
8 | mod proxmox_tape; | |
9 | use proxmox_tape::*; | |
10 | ||
11 | fn 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 | } |