From 365d5e55c2244727eb7179ea528b1e53161f2d6b Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 3 Dec 2005 17:46:21 +0000 Subject: [PATCH] implement 'history' command --- maintenance/mcc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/maintenance/mcc.php b/maintenance/mcc.php index a4e197838d..951573733d 100755 --- a/maintenance/mcc.php +++ b/maintenance/mcc.php @@ -42,6 +42,10 @@ function mccShowHelp($command) { print "delete: deletes something\n"; if($onlyone) { break; } + case 'history': + print "history: show command line history\n"; + if($onlyone) { break; } + case 'dumpmcc': print "dumpmcc: shows the whole thing\n"; if($onlyone) { break; } @@ -123,6 +127,14 @@ do { } break; + case 'history': + if ( function_exists( 'readline_list_history' ) ) { + print_r(readline_list_history()); + } else { + print "readline_list_history() not available\n"; + } + break; + case 'dumpmcc': var_dump( $mcc ); break; -- 2.20.1