aboutsummaryrefslogtreecommitdiffstats
path: root/be
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-09 17:25:46 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-09 17:25:46 +0000
commita137e93fb63f88cf47b70ac5bba51a79df47bd41 (patch)
tree9338b8f48a0741b17970e15da5f80fc502aea0f1 /be
parent1bf1ec598b436f41ff27094eddf0b28c797e359d (diff)
downloadbugseverywhere-a137e93fb63f88cf47b70ac5bba51a79df47bd41.tar.gz
Added basic bug-listing functionality
Diffstat (limited to 'be')
-rwxr-xr-xbe30
1 files changed, 30 insertions, 0 deletions
diff --git a/be b/be
new file mode 100755
index 0000000..f1e6cb3
--- /dev/null
+++ b/be
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+"""Bugs Everywhere - Distributed bug tracking
+
+be list: list bugs
+be status: view or set the status of a bug
+be comment: append a comment to a bug
+be set-root: assign the root directory for bug tracking
+"""
+from libbe.cmdutil import *
+import sys
+
+def list_bugs(args):
+ bugs = list(tree_root(os.getcwd()).list())
+ if len(bugs) == 0:
+ print "No bugs found"
+ for bug in bugs:
+ print "%s: %s" % (unique_name(bug, bugs), bug.summary)
+
+
+
+
+
+if len(sys.argv) == 1:
+ print __doc__
+else:
+ {
+ "list": list_bugs
+ }[sys.argv[1]](sys.argv[2:])
+
+