aboutsummaryrefslogtreecommitdiffstats
path: root/be
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 19:17:17 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 19:17:17 +0000
commitf254781274f35c485befb4f6acedb8fb8d1f797b (patch)
tree81f82e11fce6aa27abf9853cf9e183d40d593cc5 /be
parent20a48a1ad3f720d915084d6d139b3790cd4630eb (diff)
downloadbugseverywhere-f254781274f35c485befb4f6acedb8fb8d1f797b.tar.gz
Implemented plugin system for viewing commands
Diffstat (limited to 'be')
-rwxr-xr-xbe11
1 files changed, 9 insertions, 2 deletions
diff --git a/be b/be
index 3aa8d38..3c6c36d 100755
--- a/be
+++ b/be
@@ -1,7 +1,7 @@
#!/usr/bin/env python
from libbe.cmdutil import *
from libbe.bugdir import tree_root, create_bug_dir
-from libbe import names
+from libbe import names, plugin, cmdutil
import sys
import os
import becommands.severity
@@ -29,7 +29,14 @@ Unimplemented becommands
if len(sys.argv) == 1:
- print __doc__
+ cmdlist = []
+ print """Bugs Everywhere - Distributed bug tracking
+
+Supported commands"""
+ for name, module in cmdutil.iter_commands():
+ cmdlist.append((name, module.__doc__))
+ for name, desc in cmdlist:
+ print "%s: %s" % (name, desc)
else:
try:
try: