cleanup crate names

This commit is contained in:
Dietmar Maurer 2019-01-04 10:49:52 +01:00
parent 4bdba5f4f1
commit 07b4694a33

View File

@ -5,18 +5,19 @@ use proxmox_backup::cli::command::*;
fn datastore_commands() -> CommandLineInterface {
use proxmox_backup::api3::config::datastore;
use proxmox_backup::config;
use proxmox_backup::api3;
let cmd_def = CliCommandMap::new()
.insert("list", CliCommand::new(datastore::get()).into())
.insert("list", CliCommand::new(api3::config::datastore::get()).into())
.insert("create",
CliCommand::new(datastore::post())
CliCommand::new(api3::config::datastore::post())
.arg_param(vec!["name", "path"])
.into())
.insert("remove",
CliCommand::new(datastore::delete())
CliCommand::new(api3::config::datastore::delete())
.arg_param(vec!["name"])
.completion_cb("name", proxmox_backup::config::datastore::complete_datastore_name)
.completion_cb("name", config::datastore::complete_datastore_name)
.into());
cmd_def.into()