Skip to content

Commit

Permalink
Unifying formatting of help() messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 30, 2009
1 parent 03e7ca7 commit 4c76b2f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 13 deletions.
23 changes: 18 additions & 5 deletions cake/console/libs/tasks/controller.php
Expand Up @@ -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();
}
Expand Down
12 changes: 9 additions & 3 deletions cake/console/libs/tasks/model.php
Expand Up @@ -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();
}
Expand Down
16 changes: 12 additions & 4 deletions cake/console/libs/tasks/plugin.php
Expand Up @@ -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();
}
Expand Down
5 changes: 4 additions & 1 deletion cake/console/libs/tasks/project.php
Expand Up @@ -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();
}
Expand Down

0 comments on commit 4c76b2f

Please sign in to comment.