diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-11 19:17:17 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-11 19:17:17 +0000 |
commit | f254781274f35c485befb4f6acedb8fb8d1f797b (patch) | |
tree | 81f82e11fce6aa27abf9853cf9e183d40d593cc5 /be | |
parent | 20a48a1ad3f720d915084d6d139b3790cd4630eb (diff) | |
download | bugseverywhere-f254781274f35c485befb4f6acedb8fb8d1f797b.tar.gz |
Implemented plugin system for viewing commands
Diffstat (limited to 'be')
-rwxr-xr-x | be | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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: |