about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2014-11-23 15:37:10 -0600
committerWill Song <incertia9474@gmail.com>2014-11-23 15:37:10 -0600
commit915c3633e80a9a8bab76f5b06b967c319cfc10b1 (patch)
tree397a36e0dc8be1aa8a7138b23bcae07c156d3cb8 /src/command/command.c
parent035dc313dd6310e98311f8429f409790d29c0ee0 (diff)
downloadprofani-tty-915c3633e80a9a8bab76f5b06b967c319cfc10b1.tar.gz
implement account removal
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 2c73ca1a..6d026103 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -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],