Ticket #770 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

CLI tasks not correct

Reported by: birne Owned by: somebody
Priority: minor Milestone: 2.0.0 (OLD)
Component: Documentation Version: 0.10.0
Severity: Keywords: cli task
Cc: Has Test:
Status: Has Patch:

Description

On  http://www.phpdoctrine.org/documentation/manual/0_10?chapter=utilities#command-line-interface:tasks there is a listing of command line interface task names. Unfortunately at least the name "generate-yaml-from-models" is not correct as the corresponding class is named "Doctrine_Task_GenerateModelsYaml" and thus the command name should be (and works with) "generate-yaml-models".

When calling the cli without an argument, I get

Doctrine Command Line Interface

./doctrine build-all-load
./doctrine rebuild-db
./doctrine build-all-reload
./doctrine generate-sql
./doctrine create-tables
./doctrine load-dummy-data
./doctrine create-db
./doctrine generate-yaml-db
./doctrine dql
./doctrine generate-migrations-db
./doctrine dump-data
./doctrine generate-models-db
./doctrine generate-migration
./doctrine generate-migrations-models
./doctrine load-data
./doctrine generate-models-yaml
./doctrine migrate
./doctrine generate-yaml-models
./doctrine compile
./doctrine build-all
./doctrine drop-db

so I assume that other task names are affected by the documentation incorrectness as well. (I named "my" cli not "cli" but "doctrine"..)

Change History

Changed 17 months ago by jwage

  • status changed from new to closed
  • resolution set to fixed

(In [3852]) fixes #770

Changed 17 months ago by birne

  • status changed from closed to reopened
  • resolution fixed deleted

Sorry, but this fix is not perfect yet..

Have a look at  http://trac.phpdoctrine.org/browser/branches/0.10/manual/docs/en/utilities/command-line-interface.txt?rev=3852

The page now suggests on the one hand to name the php file for the command line interface "cli.php" but on the other hand you used the "./doctrine" from my example. This must be the same - either "doctrine" or "cli.php". I only chose to name my cli file "doctrine" wich is what I wanted to express with the last sentence in my initial bug report.

Sorry for not adapting the example I posted to the "cli.php" name - I very much preferr to call it "doctrine" because there can be command line interfaces for more than one library in a project..

Changed 17 months ago by jwage

  • status changed from reopened to closed
  • resolution set to fixed

(In [3886]) fixes #770

Note: See TracTickets for help on using tickets.