projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53769fb
)
qadmin: exit command
author
Marko Kreen
<markokr@gmail.com>
Tue, 13 Jul 2010 11:48:41 +0000
(14:48 +0300)
committer
Marko Kreen
<markokr@gmail.com>
Tue, 20 Jul 2010 14:41:23 +0000
(17:41 +0300)
python/qadmin.py
patch
|
blob
|
blame
|
history
diff --git
a/python/qadmin.py
b/python/qadmin.py
index 939c075a835fab7083d68a0e9ea841cda67433e8..bdc47cc22c25ec1bb3b4e68eefefaaca4c1dd245 100755
(executable)
--- a/
python/qadmin.py
+++ b/
python/qadmin.py
@@
-21,6
+21,10
@@
Following commands expect default queue:
show batch <batch_id>;
show batch <consumer>;
+
+Other commands:
+
+ exit; (or press ^D)
"""
# unimplemented:
@@
-380,6
+384,7
@@
w_top = List(
Word('register', w_cons_on_queue),
Word('unregister', w_cons_from_queue),
Word('show', w_show),
+ Word('exit', w_done),
name = "cmd")
top_level.set_real(w_top)
@@
-976,6
+981,9
@@
class AdminConsole:
def cmd_show_help(self, params):
print __doc__
+ def cmd_exit(self, params):
+ sys.exit(0)
+
def main():
global script
script = AdminConsole()