implement completion functions

This commit is contained in:
Dietmar Maurer
2018-12-12 12:18:28 +01:00
parent 91643d9012
commit 30d2e99c77
3 changed files with 51 additions and 6 deletions

View File

@ -18,6 +18,7 @@ fn datastore_commands() -> CommandLineInterface {
.insert("remove",
CliCommand::new(datastore::delete())
.arg_param(vec!["name"])
.completion_cb("name", apitest::config::datastore::complete_datastore_name)
.into());
cmd_def.into()