summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-12-31 12:59:56 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2018-12-31 12:59:56 +0100
commitcae8352f99fe86a51a82ad6ebd2b77057b49962b (patch)
tree3cb79706ccb115586d52e4da0bd6e18f2703f5c7
parentfee8a858a8c94a8965c464cf78d5ec37b2230775 (diff)
downloadpykolab-cae8352f99fe86a51a82ad6ebd2b77057b49962b.tar.gz
Add aliases for add-user-subscription ('aus', 'subscribe')
Add alias for list-user-subscriptions ('lus') Add aliases for remove-user-subscription ('rus', 'unsubscribe')
-rw-r--r--pykolab/cli/cmd_add_user_subscription.py7
-rw-r--r--pykolab/cli/cmd_list_user_subscriptions.py2
-rw-r--r--pykolab/cli/cmd_remove_user_subscription.py7
3 files changed, 13 insertions, 3 deletions
diff --git a/pykolab/cli/cmd_add_user_subscription.py b/pykolab/cli/cmd_add_user_subscription.py
index 2b463e2..d8a8901 100644
--- a/pykolab/cli/cmd_add_user_subscription.py
+++ b/pykolab/cli/cmd_add_user_subscription.py
@@ -31,7 +31,12 @@ log = pykolab.getLogger('pykolab.cli')
conf = pykolab.getConf()
def __init__():
- commands.register('add_user_subscription', execute, description=description())
+ commands.register(
+ 'add_user_subscription',
+ execute,
+ aliases=['aus', 'subscribe'],
+ description=description()
+ )
def description():
return _("Subscribe a user to a folder.")
diff --git a/pykolab/cli/cmd_list_user_subscriptions.py b/pykolab/cli/cmd_list_user_subscriptions.py
index aef47db..9095604 100644
--- a/pykolab/cli/cmd_list_user_subscriptions.py
+++ b/pykolab/cli/cmd_list_user_subscriptions.py
@@ -30,7 +30,7 @@ log = pykolab.getLogger('pykolab.cli')
conf = pykolab.getConf()
def __init__():
- commands.register('list_user_subscriptions', execute, description=description())
+ commands.register('list_user_subscriptions', execute, aliases='lus', description=description())
def cli_options(*args, **kw):
my_option_group = conf.add_cli_parser_option_group(_("CLI Options"))
diff --git a/pykolab/cli/cmd_remove_user_subscription.py b/pykolab/cli/cmd_remove_user_subscription.py
index d6ca9e2..59975c8 100644
--- a/pykolab/cli/cmd_remove_user_subscription.py
+++ b/pykolab/cli/cmd_remove_user_subscription.py
@@ -31,7 +31,12 @@ log = pykolab.getLogger('pykolab.cli')
conf = pykolab.getConf()
def __init__():
- commands.register('remove_user_subscription', execute, description=description())
+ commands.register(
+ 'remove_user_subscription',
+ execute,
+ aliases=['rus', 'unsubscribe'],
+ description=description()
+ )
def description():
return _("Unsubscribe a user from a folder.")