implement account removal

This commit is contained in:
Will Song
2014-11-23 15:37:10 -06:00
parent 035dc313dd
commit 915c3633e8
4 changed files with 28 additions and 1 deletions

View File

@@ -890,6 +890,7 @@ static struct cmd_t command_defs[] =
"enable account : Enable the account, it will be used for autocomplete.",
"disable account : Disable the account.",
"add account : Create a new account.",
"remove account : Remove an account.",
"rename account newname : Rename account to newname.",
"set account property value : Set 'property' of 'account' to 'value'.",
"clear account property value : Clear 'property' of 'account'.",
@@ -1212,6 +1213,7 @@ cmd_init(void)
autocomplete_add(account_ac, "list");
autocomplete_add(account_ac, "show");
autocomplete_add(account_ac, "add");
autocomplete_add(account_ac, "remove");
autocomplete_add(account_ac, "enable");
autocomplete_add(account_ac, "disable");
autocomplete_add(account_ac, "rename");
@@ -2782,7 +2784,7 @@ _account_autocomplete(char *input, int *size)
int i = 0;
gchar *account_choice[] = { "/account set", "/account show", "/account enable",
"/account disable", "/account rename", "/account clear" };
"/account disable", "/account rename", "/account clear", "/account remove" };
for (i = 0; i < ARRAY_SIZE(account_choice); i++) {
found = autocomplete_param_with_func(input, size, account_choice[i],