aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/show.py
diff options
context:
space:
mode:
Diffstat (limited to 'becommands/show.py')
-rw-r--r--becommands/show.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/becommands/show.py b/becommands/show.py
new file mode 100644
index 0000000..8b38386
--- /dev/null
+++ b/becommands/show.py
@@ -0,0 +1,9 @@
+from libbe import bugdir, cmdutil
+import os
+
+def execute(args):
+ bug_dir = bugdir.tree_root(os.getcwd())
+ if len(args) !=1:
+ raise cmdutil.UserError("Please specify a bug id.")
+ print cmdutil.bug_summary(cmdutil.get_bug(args[0], bug_dir),
+ list(bug_dir.list()))