diff options
author | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-09 17:25:46 +0000 |
---|---|---|
committer | Aaron Bentley <abentley@panoramicfeedback.com> | 2005-03-09 17:25:46 +0000 |
commit | a137e93fb63f88cf47b70ac5bba51a79df47bd41 (patch) | |
tree | 9338b8f48a0741b17970e15da5f80fc502aea0f1 /be | |
parent | 1bf1ec598b436f41ff27094eddf0b28c797e359d (diff) | |
download | bugseverywhere-a137e93fb63f88cf47b70ac5bba51a79df47bd41.tar.gz |
Added basic bug-listing functionality
Diffstat (limited to 'be')
-rwxr-xr-x | be | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -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:]) + + |