mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
removing clear from welcome
while it's superficially useful to start from a clean screen - it's not actually helpful. Quite often cake will issue setup errors which a user will not see because they are immediately cleared. Users continue using the cli unaware that they have (possibly significant) problems
This commit is contained in:
parent
495611b313
commit
bb99f9bc13
1 changed files with 6 additions and 7 deletions
|
@ -165,7 +165,7 @@ class Shell extends Object {
|
||||||
if ($this->stdin == null) {
|
if ($this->stdin == null) {
|
||||||
$this->stdin = new ConsoleInput('php://stdin');
|
$this->stdin = new ConsoleInput('php://stdin');
|
||||||
}
|
}
|
||||||
|
|
||||||
$parent = get_parent_class($this);
|
$parent = get_parent_class($this);
|
||||||
if ($this->tasks !== null && $this->tasks !== false) {
|
if ($this->tasks !== null && $this->tasks !== false) {
|
||||||
$this->_mergeVars(array('tasks'), $parent, true);
|
$this->_mergeVars(array('tasks'), $parent, true);
|
||||||
|
@ -200,7 +200,6 @@ class Shell extends Object {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
protected function _welcome() {
|
protected function _welcome() {
|
||||||
$this->clear();
|
|
||||||
$this->out();
|
$this->out();
|
||||||
$this->out('<info>Welcome to CakePHP v' . Configure::version() . ' Console</info>');
|
$this->out('<info>Welcome to CakePHP v' . Configure::version() . ' Console</info>');
|
||||||
$this->hr();
|
$this->hr();
|
||||||
|
@ -296,16 +295,16 @@ class Shell extends Object {
|
||||||
* but intended for running shells from other shells.
|
* but intended for running shells from other shells.
|
||||||
*
|
*
|
||||||
* ### Usage:
|
* ### Usage:
|
||||||
*
|
*
|
||||||
* With a string commmand:
|
* With a string commmand:
|
||||||
*
|
*
|
||||||
* `return $this->dispatchShell('schema create DbAcl');`
|
* `return $this->dispatchShell('schema create DbAcl');`
|
||||||
*
|
*
|
||||||
* With an array command:
|
* With an array command:
|
||||||
*
|
*
|
||||||
* `return $this->dispatchShell('schema', 'create', 'i18n', '--dry');`
|
* `return $this->dispatchShell('schema', 'create', 'i18n', '--dry');`
|
||||||
*
|
*
|
||||||
* @param mixed $command Either an array of args similar to $argv. Or a string command, that can be
|
* @param mixed $command Either an array of args similar to $argv. Or a string command, that can be
|
||||||
* exploded on space to simulate argv.
|
* exploded on space to simulate argv.
|
||||||
* @return mixed. The return of the other shell.
|
* @return mixed. The return of the other shell.
|
||||||
*/
|
*/
|
||||||
|
@ -471,7 +470,7 @@ class Shell extends Object {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wrap a block of text.
|
* Wrap a block of text.
|
||||||
* Allows you to set the width, and indenting on a block of text.
|
* Allows you to set the width, and indenting on a block of text.
|
||||||
*
|
*
|
||||||
* ### Options
|
* ### Options
|
||||||
*
|
*
|
||||||
|
@ -480,7 +479,7 @@ class Shell extends Object {
|
||||||
* - `indent` Indent the text with the string provided. Defaults to null.
|
* - `indent` Indent the text with the string provided. Defaults to null.
|
||||||
*
|
*
|
||||||
* @param string $text Text the text to format.
|
* @param string $text Text the text to format.
|
||||||
* @param mixed $options Array of options to use, or an integer to wrap the text to.
|
* @param mixed $options Array of options to use, or an integer to wrap the text to.
|
||||||
* @return string Wrapped / indented text
|
* @return string Wrapped / indented text
|
||||||
* @see String::wrap()
|
* @see String::wrap()
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue