diff options
author | Marko Kreen | 2010-07-13 11:48:41 +0000 |
---|---|---|
committer | Marko Kreen | 2010-07-20 14:41:23 +0000 |
commit | 18f153b43da8d6b4024b6537079306234fcad223 (patch) | |
tree | 1e91fd61b0ed2cc2947e82ebc0c4f3d60a0c4ba8 /python/qadmin.py | |
parent | 53769fbc13981ef4b97f54fd5abf872a1d380cb6 (diff) |
qadmin: exit command
Diffstat (limited to 'python/qadmin.py')
-rwxr-xr-x | python/qadmin.py | 8 |
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() |