pomm-project / pomm-bundle

Pomm2 bundle for Symfony
81 stars 31 forks source link

Provide a .pomm_cli_bootstrap.php file #8

Closed sanpii closed 9 years ago

sanpii commented 9 years ago

For the pomm-project/cli tool.

chanmix51 commented 9 years ago

Not sure this should not be handled by a Command in the bundle. We have to see how we can interface the existing Cli package with the bundle.

sanpii commented 9 years ago

@chanmix51 good idea :smiley:

That works fine: https://github.com/sanpii/pomm-bundle/commit/980257ddd07f42da69f674550019f2476a8da4b0

Except, I would have preferred the commands begin with pomm:

generate
  generate:entity         Generate an Entity class.
  generate:model          Generate a new model file.
  generate:relation-all   Generate structure, model and entity file for a given relation.
  generate:schema-all     Generate structure, model and entity file for all relations in a schema.
  generate:structure      Generate a RowStructure file based on table schema.
inspect
  inspect:database        Show schemas in the current database.
  inspect:relation        Display a relation information.
  inspect:schema          Show relations in a given schema.
chanmix51 commented 9 years ago

Can we have something like pomm:generate:schema-all ?

sanpii commented 9 years ago

Can we have something like pomm:generate:schema-all ?

I try with adding a call for setting name, but find doesn’t work.

chanmix51 commented 9 years ago

What if we add the pomm prefix in the Cli package ?

sanpii commented 9 years ago

Waiting for pomm-project/Cli#4

chanmix51 commented 9 years ago

Done in ab817d0