aboutsummaryrefslogtreecommitdiffstats
path: root/becommands/set_root.py
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 18:39:26 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-11 18:39:26 +0000
commit20a48a1ad3f720d915084d6d139b3790cd4630eb (patch)
tree4b89c9694971033355bb018af36ddbb578024f65 /becommands/set_root.py
parent51c729fdfd03369e2ad7dc6752034469cfbdf253 (diff)
downloadbugseverywhere-20a48a1ad3f720d915084d6d139b3790cd4630eb.tar.gz
Modularized commands into files
Diffstat (limited to 'becommands/set_root.py')
-rw-r--r--becommands/set_root.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/becommands/set_root.py b/becommands/set_root.py
new file mode 100644
index 0000000..bf1d495
--- /dev/null
+++ b/becommands/set_root.py
@@ -0,0 +1,6 @@
+from libbe import bugdir, cmdutil
+
+def execute(args):
+ if len(args) != 1:
+ raise cmdutil.UserError("Please supply a directory path")
+ bugdir.create_bug_dir(args[0])