summaryrefslogtreecommitdiff
path: root/python/qadmin.py
diff options
context:
space:
mode:
authorMarko Kreen2010-07-13 11:48:41 +0000
committerMarko Kreen2010-07-20 14:41:23 +0000
commit18f153b43da8d6b4024b6537079306234fcad223 (patch)
tree1e91fd61b0ed2cc2947e82ebc0c4f3d60a0c4ba8 /python/qadmin.py
parent53769fbc13981ef4b97f54fd5abf872a1d380cb6 (diff)
qadmin: exit command
Diffstat (limited to 'python/qadmin.py')
-rwxr-xr-xpython/qadmin.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/qadmin.py b/python/qadmin.py
index 939c075a..bdc47cc2 100755
--- 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()