aboutsummaryrefslogtreecommitdiffstats
path: root/be
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 17:45:05 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 17:45:05 +0000
commitf5458611072ab7c6048311430771d1ec297d4f61 (patch)
tree0f3c8787b0063a6d78a347e6b3f5276f3a5f4513 /be
parent56c2c54ef00acc75f2bce8ded2b7fa66e8d07712 (diff)
downloadbugseverywhere-f5458611072ab7c6048311430771d1ec297d4f61.tar.gz
Added severity command
Diffstat (limited to 'be')
-rwxr-xr-xbe18
1 files changed, 11 insertions, 7 deletions
diff --git a/be b/be
index 1dbcee0..5c04906 100755
--- a/be
+++ b/be
@@ -1,5 +1,12 @@
#!/usr/bin/env python
-"""Bugs Everywhere - Distributed bug tracking
+from libbe.cmdutil import *
+from libbe.bugdir import tree_root, create_bug_dir
+from libbe import names
+import sys
+import os
+import commands
+import commands.severity
+__doc__ = """Bugs Everywhere - Distributed bug tracking
Supported commands
set-root: assign the root directory for bug tracking
@@ -8,15 +15,11 @@ Supported commands
show: show a particular bug
close: close a bug
open: re-open a bug
+ severity: %s
Unimplemented commands
comment: append a comment to a bug
-"""
-from libbe.cmdutil import *
-from libbe.bugdir import tree_root, create_bug_dir
-from libbe import names
-import sys
-import os
+""" % commands.severity.__desc__
def list_bugs(args):
active = True
@@ -77,6 +80,7 @@ else:
"new": new_bug,
"close": close_bug,
"open": open_bug,
+ "severity": commands.severity.execute,
}[sys.argv[1]]
except KeyError, e:
raise UserError("Unknown command \"%s\"" % e.args[0])