summaryrefslogtreecommitdiffstats
path: root/pykolab/cli/cmd_remove_user_subscription.py
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 /pykolab/cli/cmd_remove_user_subscription.py
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')
Diffstat (limited to 'pykolab/cli/cmd_remove_user_subscription.py')
-rw-r--r--pykolab/cli/cmd_remove_user_subscription.py7
1 files changed, 6 insertions, 1 deletions
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.")