From 15693aa98b041ed9b62ef0351abac3888b282d3a Mon Sep 17 00:00:00 2001 From: Jeff Gould Date: Mon, 28 Mar 2016 17:46:20 -0700 Subject: [PATCH 1/2] allow newlines in $prompt --- php/WP_CLI/REPL.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/php/WP_CLI/REPL.php b/php/WP_CLI/REPL.php index 576359ecc0..0a14b3e422 100644 --- a/php/WP_CLI/REPL.php +++ b/php/WP_CLI/REPL.php @@ -80,18 +80,14 @@ private static function create_prompt_cmd( $prompt, $history_path ) { $prompt = escapeshellarg( $prompt ); $history_path = escapeshellarg( $history_path ); - $cmd = << Date: Mon, 28 Mar 2016 17:46:52 -0700 Subject: [PATCH 2/2] add newline to REPL prompt --- php/commands/shell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/commands/shell.php b/php/commands/shell.php index 0bb052ff57..d0c39bd721 100644 --- a/php/commands/shell.php +++ b/php/commands/shell.php @@ -35,7 +35,7 @@ public function __invoke( $_, $assoc_args ) { if ( '\\Psy\\Shell' == $class ) { \Psy\Shell::debug(); } else { - $repl = new $class( 'wp> ' ); + $repl = new $class( "\nwp> " ); $repl->start(); } }