backup-client: add bash completion for datastore names
This commit is contained in:
parent
445ebe0ec8
commit
f8838fe913
|
@ -51,7 +51,9 @@ fn main() {
|
||||||
.required("filename", StringSchema::new("Source file name."))
|
.required("filename", StringSchema::new("Source file name."))
|
||||||
.required("store", StringSchema::new("Datastore 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()) {
|
if let Err(err) = run_cli_command(&cmd_def.into()) {
|
||||||
eprintln!("Error: {}", err);
|
eprintln!("Error: {}", err);
|
||||||
|
|
Loading…
Reference in New Issue