Skip to content
Permalink
Browse files

Correct commands and make them more visible.

  • Loading branch information...
dereuromark committed Sep 4, 2014
1 parent 39aaadf commit ca38833239698df10ed55dc8089677faf60da9ee
@@ -85,7 +85,7 @@ public function main() {
$this->out('- ' . Inflector::underscore($name));
}
$this->out('');
$this->out('By using <info>Console/cake bake [name]</info> you can invoke a specific bake task.');
$this->out('By using <info>`cake bake [name]`</info> you can invoke a specific bake task.');
}
/**
@@ -205,7 +205,7 @@ public function all($name = null) {
foreach ($this->Model->listAll() as $table) {
$this->out('- ' . $table);
}
$this->out('Run <info>cake bake all [name]</info> to generate skeleton files.');
$this->out('Run <info>`cake bake all [name]`</info> to generate skeleton files.');
return false;
}
@@ -51,7 +51,7 @@ public function startup() {
public function main() {
if (empty($this->params['xml'])) {
$this->out("<info>Current Paths:</info>", 2);
$this->out("* app: " . APP_DIR);
$this->out("* app: " . APP_DIR);
$this->out("* root: " . rtrim(ROOT, DS));
$this->out("* core: " . rtrim(CORE_PATH, DS));
$this->out("");
@@ -84,9 +84,9 @@ protected function _asText($shellList) {
$this->out();
}
$this->out("To run an app or core command, type <info>cake shell_name [args]</info>");
$this->out("To run a plugin command, type <info>cake Plugin.shell_name [args]</info>");
$this->out("To get help on a specific command, type <info>cake shell_name --help</info>", 2);
$this->out("To run an app or core command, type <info>`cake shell_name [args]`</info>");
$this->out("To run a plugin command, type <info>`cake Plugin.shell_name [args]`</info>");
$this->out("To get help on a specific command, type <info>`cake shell_name --help`</info>", 2);
}
/**
@@ -132,7 +132,7 @@ public function main() {
$port = ':' . $this->_port;
$this->out(sprintf('built-in server is running in http://%s%s/', $this->_host, $port));
$this->out(sprintf('You can exit with <info>CTRL-C</info>'));
$this->out(sprintf('You can exit with <info>`CTRL-C`</info>'));
system($command);
}
@@ -59,7 +59,7 @@ public function initialize() {
public function main($name = null) {
if (empty($name)) {
$this->err('<error>You must provide a plugin name in CamelCase format.</error>');
$this->err('To make an "Example" plugin, run <info>Console/cake bake plugin Example</info>.');
$this->err('To make an "Example" plugin, run <info>`cake bake plugin Example`</info>.');
return false;
}
$plugin = $this->_camelize($name);
@@ -58,12 +58,12 @@ public function available() {
* @return void
*/
public function outputWarning() {
$this->err('<error>Test Shell has been removed.</error>');
$this->err('<error>TestShell has been removed.</error>');
$this->err('');
$this->err('TestShell has been removed and replaced with <info>phpunit</info>.');
$this->err('TestShell has been replaced with <info>`phpunit`</info>.');
$this->err('');
$this->err('To run your application tests run <info>phpunit</info>');
$this->err('To run plugin tests, cd into the plugin directory and run <info>phpunit</info>');
$this->err('To run your application tests run <info>`phpunit`</info>');
$this->err('To run plugin tests, cd into the plugin directory and run <info>`phpunit`</info>');
}
}

0 comments on commit ca38833

Please sign in to comment.
You can’t perform that action at this time.