summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab')
-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.")