backup-client: add bash completion for datastore names

This commit is contained in:
Dietmar Maurer 2018-12-15 11:24:39 +01:00
parent 445ebe0ec8
commit f8838fe913
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ fn main() {
.required("filename", StringSchema::new("Source file name."))
.required("store", StringSchema::new("Datastore name."))
))
.arg_param(vec!["filename"]);
.arg_param(vec!["filename"])
.completion_cb("store", apitest::config::datastore::complete_datastore_name);
if let Err(err) = run_cli_command(&cmd_def.into()) {
eprintln!("Error: {}", err);