From: Antoine Musso Date: Sat, 3 Dec 2005 17:46:21 +0000 (+0000) Subject: implement 'history' command X-Git-Tag: 1.6.0~1054 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=365d5e55c2244727eb7179ea528b1e53161f2d6b;p=lhc%2Fweb%2Fwiklou.git implement 'history' command --- 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;