Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Unifying formatting of help() messages.

  • Loading branch information...
commit 4c76b2f1a84d92db532cb841ecd2d8ab3e30ce86 1 parent 03e7ca7
@markstory markstory authored
View
23 cake/console/libs/tasks/controller.php
@@ -442,11 +442,24 @@ function help() {
$this->out("Usage: cake bake controller <arg1> <arg2>...");
$this->hr();
$this->out('Commands:');
- $this->out("\n\tcontroller <name>\n\t\tbakes controller with var \$scaffold");
- $this->out("\n\tcontroller <name> scaffold\n\t\tbakes controller with scaffold actions.\n\t\t(index, view, add, edit, delete)");
- $this->out("\n\tcontroller <name> scaffold admin\n\t\tbakes a controller with scaffold actions for both public and Configure::read('Routing.admin')");
- $this->out("\n\tcontroller <name> admin\n\t\tbakes a controller with scaffold actions only for Configure::read('Routing.admin')");
- $this->out("\n\tcontroller all\n\t\tbakes all controllers with CRUD methods.");
+ $this->out('');
+ $this->out("controller <name>");
+ $this->out("\tbakes controller with var \$scaffold");
+ $this->out('');
+ $this->out("controller <name> scaffold");
+ $this->out("\tbakes controller with scaffold actions.");
+ $this->out("\t(index, view, add, edit, delete)");
+ $this->out('');
+ $this->out("controller <name> scaffold admin");
+ $this->out("\tbakes a controller with scaffold actions for both public");
+ $this->out("\tand Configure::read('Routing.admin')");
+ $this->out('');
+ $this->out("controller <name> admin");
+ $this->out("\tbakes a controller with scaffold actions only for");
+ $this->out("\tConfigure::read('Routing.admin')");
+ $this->out('');
+ $this->out("controller all");
+ $this->out("\tbakes all controllers with CRUD methods.");
$this->out("");
$this->_stop();
}
View
12 cake/console/libs/tasks/model.php
@@ -846,9 +846,15 @@ function help() {
$this->out("Usage: cake bake model <arg1>");
$this->hr();
$this->out('Commands:');
- $this->out("\n\tmodel\n\t\tbakes model in interactive mode.");
- $this->out("\n\tmodel <name>\n\t\tbakes model file with no associations or validation");
- $this->out("\n\tmodel all\n\t\tbakes all model files with associations and validation");
+ $this->out('');
+ $this->out("model");
+ $this->out("\tbakes model in interactive mode.");
+ $this->out('');
+ $this->out("model <name>");
+ $this->out("\tbakes model file with no associations or validation");
+ $this->out('');
+ $this->out("model all");
+ $this->out("\tbakes all model files with associations and validation");
$this->out("");
$this->_stop();
}
View
16 cake/console/libs/tasks/plugin.php
@@ -191,10 +191,18 @@ function help() {
$this->out("Usage: cake bake plugin <arg1> <arg2>...");
$this->hr();
$this->out('Commands:');
- $this->out("\n\tplugin <name>\n\t\tbakes plugin directory structure");
- $this->out("\n\tplugin <name> model\n\t\tbakes model. Run 'cake bake model help' for more info.");
- $this->out("\n\tplugin <name> controller\n\t\tbakes controller. Run 'cake bake controller help' for more info.");
- $this->out("\n\tplugin <name> view\n\t\tbakes view. Run 'cake bake view help' for more info.");
+ $this->out('');
+ $this->out("plugin <name>");
+ $this->out("\tbakes plugin directory structure");
+ $this->out('');
+ $this->out("plugin <name> model");
+ $this->out("\tbakes model. Run 'cake bake model help' for more info.");
+ $this->out('');
+ $this->out("plugin <name> controller");
+ $this->out("\tbakes controller. Run 'cake bake controller help' for more info.");
+ $this->out('');
+ $this->out("plugin <name> view");
+ $this->out("\tbakes view. Run 'cake bake view help' for more info.");
$this->out("");
$this->_stop();
}
View
5 cake/console/libs/tasks/project.php
@@ -273,7 +273,10 @@ function help() {
$this->out("Usage: cake bake project <arg1>");
$this->hr();
$this->out('Commands:');
- $this->out("\n\tproject <name>\n\t\tbakes app directory structure.\n\t\tif <name> begins with '/' path is absolute.");
+ $this->out('');
+ $this->out("project <name>");
+ $this->out("\tbakes app directory structure.");
+ $this->out("\tif <name> begins with '/' path is absolute.");
$this->out("");
$this->_stop();
}
Please sign in to comment.
Something went wrong with that request. Please try again.