From 184c4551966135f819933219e059c3c1d65a8bd3 Mon Sep 17 00:00:00 2001 From: Guillaume Chazarain Date: Sun, 1 Jun 2008 18:22:54 +0200 Subject: [PATCH] Shorter command name for shorter :help output --- NEWS | 2 +- gsh.1 | 6 +++--- gsh/control_commands.py | 6 +++--- tests/tests/control_commands.py | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/NEWS b/NEWS index bf2096a..ea5cde5 100644 --- a/NEWS +++ b/NEWS @@ -13,7 +13,7 @@ o Added the :hide_password control command, to use with su(1) for example o Added the :reset_prompt control command, for use when launching a shell o Added the :replicate and :upload control commands to do some file transfer o Added the :export_rank control command to uniquely identify each shell -o Added the :print_read_buffer control command to see what gsh just read +o Added the :show_read_buffer control command to see what gsh just read o Common SSH key problems are detected and some help is printed o New completion from the local filesystem o Simplified :list output, and added the last printed line diff --git a/gsh.1 b/gsh.1 index cff012d..4ed57db 100644 --- a/gsh.1 +++ b/gsh.1 @@ -68,9 +68,6 @@ Do not echo the next typed line. This is useful when entering password. If debug \fB:list [SHELLS...]\fR List remote shells and their states. The output consists of: : . The special characters * ? and [] work as expected. .TP -\fB:print_read_buffer [SHELLS...]\fR -Print the data read by remote shells. The special characters * ? and [] work as expected. -.TP \fB:purge [SHELLS...]\fR Delete disabled remote shells. This helps to have a shorter list. The special characters * ? and [] work as expected. .TP @@ -98,6 +95,9 @@ Enable or disable debugging output for remote shells. The first argument is 'y' \fB:set_log [LOCAL_PATH]\fR Duplicate every console input/output into the given local file. If LOCAL_PATH is not given, restore the default behaviour of not logging. .TP +\fB:show_read_buffer [SHELLS...]\fR +Print the data read by remote shells. The special characters * ? and [] work as expected. +.TP \fB:upload LOCAL_PATH\fR Upload the specified local path to enabled remote shells. \" END AUTO-GENERATED CONTROL COMMANDS DOCUMENTATION diff --git a/gsh/control_commands.py b/gsh/control_commands.py index 61f55ea..913657a 100644 --- a/gsh/control_commands.py +++ b/gsh/control_commands.py @@ -353,13 +353,13 @@ def do_set_log(command): remote_dispatcher.options.log_file = None console_output('Logging disabled\n') -def complete_print_read_buffer(line, text): +def complete_show_read_buffer(line, text): return complete_shells(line, text, lambda i: i.read_buffer or i.read_in_state_not_started) -def do_print_read_buffer(command): +def do_show_read_buffer(command): """ - Usage: :print_read_buffer [SHELLS...] + Usage: :show_read_buffer [SHELLS...] Print the data read by remote shells. The special characters * ? and [] work as expected. """ diff --git a/tests/tests/control_commands.py b/tests/tests/control_commands.py index ee9c4fa..1dc5ade 100644 --- a/tests/tests/control_commands.py +++ b/tests/tests/control_commands.py @@ -299,7 +299,7 @@ localhost: appended to the log def testPrintReadBuffer(self): child = launch_gsh(['--ssh=echo message; sleep'] + ['2h'] * 3) child.expect('waiting \(3/3\)> ') - child.sendline(':print_read_buffer \t*') + child.sendline(':show_read_buffer \t*') for i in xrange(3): child.expect('2h[ #][ 12]: message') child.expect('waiting \(3/3\)> ') -- 2.11.4.GIT