Skip to content

Commit

Permalink
Splitting help() into more readable format.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 4, 2009
1 parent 76a88fc commit e1d0be6
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions cake/console/libs/schema.php
Expand Up @@ -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();
}
Expand Down

0 comments on commit e1d0be6

Please sign in to comment.