Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Splitting help() into more readable format.

  • Loading branch information...
commit e1d0be610cc49cb0ce621b874cdd07948cc951e3 1 parent 76a88fc
@markstory markstory authored
Showing with 25 additions and 6 deletions.
  1. +25 −6 cake/console/libs/schema.php
View
31 cake/console/libs/schema.php
@@ -464,17 +464,36 @@ function help() {
$this->out();
$this->out('Commands:');
$this->out();
- $this->out("\tschema help\n\t\tshows this help message.");
+ $this->out("\tschema help");
+ $this->out("\t\tshows this help message.");
$this->out();
- $this->out("\tschema view\n\t\tread and output contents of schema file");
+ $this->out("\tschema view");
+ $this->out("\t\tread and output contents of schema file");
$this->out();
- $this->out("\tschema generate\n\t\treads from 'connection' writes to 'path'\n\t\tTo force generation of all tables into the schema, use the -f param.\n\t\tUse 'schema generate snapshot <number>' to generate snapshots\n\t\twhich you can use with the -s parameter in the other operations.");
+ $this->out("\tschema generate");
+ $this->out("\t\treads from 'connection' writes to 'path'");
+ $this->out("\t\tTo force generation of all tables into the schema, use the -f param.");
+ $this->out("\t\tUse 'schema generate snapshot <number>' to generate snapshots");
+ $this->out("\t\twhich you can use with the -s parameter in the other operations.");
$this->out();
- $this->out("\tschema dump <filename>\n\t\tDump database sql based on schema file to <filename>. \n\t\tIf <filename> is write, schema dump will be written to a file\n\t\tthat has the same name as the app directory.");
+ $this->out("\tschema dump <filename>");
+ $this->out("\t\tDump database sql based on schema file to <filename>.");
+ $this->out("\t\tIf <filename> is write, schema dump will be written to a file");
+ $this->out("\t\tthat has the same name as the app directory.");
$this->out();
- $this->out("\tschema run create <schema> <table>\n\t\tDrop and create tables based on schema file\n\t\toptional <schema> arg for selecting schema name\n\t\toptional <table> arg for creating only one table\n\t\tpass the -s param with a number to use a snapshot\n\t\tTo see the changes, perform a dry run with the -dry param");
+ $this->out("\tschema run create <schema> <table>");
+ $this->out("\t\tDrop and create tables based on schema file");
+ $this->out("\t\toptional <schema> arg for selecting schema name");
+ $this->out("\t\toptional <table> arg for creating only one table");
+ $this->out("\t\tpass the -s param with a number to use a snapshot");
+ $this->out("\t\tTo see the changes, perform a dry run with the -dry param");
$this->out();
- $this->out("\tschema run update <schema> <table>\n\t\talter tables based on schema file\n\t\toptional <schema> arg for selecting schema name.\n\t\toptional <table> arg for altering only one table.\n\t\tTo use a snapshot, pass the -s param with the snapshot number\n\t\tTo see the changes, perform a dry run with the -dry param");
+ $this->out("\tschema run update <schema> <table>");
+ $this->out("\t\talter tables based on schema file");
+ $this->out("\t\toptional <schema> arg for selecting schema name.");
+ $this->out("\t\toptional <table> arg for altering only one table.");
+ $this->out("\t\tTo use a snapshot, pass the -s param with the snapshot number");
+ $this->out("\t\tTo see the changes, perform a dry run with the -dry param");
$this->out();
$this->_stop();
}
Please sign in to comment.
Something went wrong with that request. Please try again.