aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/cmdutil.py
diff options
context:
space:
mode:
Diffstat (limited to 'libbe/cmdutil.py')
-rw-r--r--libbe/cmdutil.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbe/cmdutil.py b/libbe/cmdutil.py
index 2afd53c..77f0dfb 100644
--- a/libbe/cmdutil.py
+++ b/libbe/cmdutil.py
@@ -1,4 +1,5 @@
import bugdir
+import plugin
def unique_name(bug, bugs):
chars = 1
for some_bug in bugs:
@@ -49,3 +50,11 @@ def bug_summary(bug, bugs):
(unique_name(bug, bugs), bug.severity, target, bug.creator,
bug.summary)
+def iter_commands():
+ return plugin.iter_plugins("becommands")
+
+def execute(cmd, args):
+ return plugin.get_plugin("becommands", cmd).execute(args)
+
+def help(cmd, args):
+ return plugin.get_plugin("becommands", cmd).help()