Skip to content

Commit

Permalink
Correct commands and make them more visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Sep 4, 2014
1 parent 39aaadf commit ca38833
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/Shell/BakeShell.php
Expand Up @@ -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.');
}

/**
Expand Down Expand Up @@ -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;
}

Expand Down
8 changes: 4 additions & 4 deletions src/Shell/CommandListShell.php
Expand Up @@ -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("");
Expand Down Expand Up @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Shell/ServerShell.php
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Shell/Task/PluginTask.php
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions src/Shell/TestShell.php
Expand Up @@ -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.