diff --git a/Cargo.toml b/Cargo.toml index aaa59f2e..f824038b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -34,7 +34,7 @@ pam = "0.7" pam-sys = "0.5" percent-encoding = "2.1" pin-utils = "0.1.0-alpha" -proxmox = { version = "0.1.8", features = [ "sortable-macro", "api-macro" ] } +proxmox = { version = "0.1.9", features = [ "sortable-macro", "api-macro" ] } #proxmox = { git = "ssh://gitolite3@proxdev.maurer-it.com/rust/proxmox", version = "0.1.2", features = [ "sortable-macro", "api-macro" ] } #proxmox = { path = "../proxmox/proxmox", features = [ "sortable-macro", "api-macro" ] } regex = "1.2" diff --git a/src/backup/catalog_shell.rs b/src/backup/catalog_shell.rs index 3c146899..bd8ce218 100644 --- a/src/backup/catalog_shell.rs +++ b/src/backup/catalog_shell.rs @@ -132,7 +132,7 @@ impl Shell { continue; } }; - let _ = handle_command(helper.cmd_def(), "", args); + let _ = handle_command(helper.cmd_def(), "", args, None); self.rl.add_history_entry(line); self.update_prompt()?; } diff --git a/src/bin/completion.rs b/src/bin/completion.rs index d311e944..cbeec365 100644 --- a/src/bin/completion.rs +++ b/src/bin/completion.rs @@ -83,7 +83,7 @@ fn main() -> Result<(), Error> { let args = shellword_split(&line)?; - let _ = handle_command(helper.cmd_def(), "", args); + let _ = handle_command(helper.cmd_def(), "", args, None); rl.add_history_entry(line); } diff --git a/src/bin/proxmox-backup-client.rs b/src/bin/proxmox-backup-client.rs index 5c234985..282233ce 100644 --- a/src/bin/proxmox-backup-client.rs +++ b/src/bin/proxmox-backup-client.rs @@ -2378,5 +2378,7 @@ fn main() { .insert("catalog", catalog_mgmt_cli()) .insert("task", task_mgmt_cli()); - proxmox_backup::tools::runtime::main(run_cli_command(cmd_def)); + run_cli_command(cmd_def, Some(|future| { + proxmox_backup::tools::runtime::main(future) + })); } diff --git a/src/bin/proxmox-backup-manager.rs b/src/bin/proxmox-backup-manager.rs index 271e9ae9..fac88cc4 100644 --- a/src/bin/proxmox-backup-manager.rs +++ b/src/bin/proxmox-backup-manager.rs @@ -465,7 +465,7 @@ fn main() { .completion_cb("remote-store", complete_remote_datastore_name) ); - proxmox_backup::tools::runtime::main(run_cli_command(cmd_def)); + proxmox_backup::tools::runtime::main(run_async_cli_command(cmd_def)); } // shell completion helper diff --git a/src/bin/pxar.rs b/src/bin/pxar.rs index a5b5e682..7ab80bf7 100644 --- a/src/bin/pxar.rs +++ b/src/bin/pxar.rs @@ -519,5 +519,5 @@ fn main() { .completion_cb("archive", tools::complete_file_name) ); - proxmox_backup::tools::runtime::main(run_cli_command(cmd_def)); + run_cli_command(cmd_def, None); }