Skip to content

Commit

Permalink
Merge pull request #684 from doctrine/command-aliases
Browse files Browse the repository at this point in the history
Add shorter console command aliases to improve developer experience.
  • Loading branch information
jwage authored May 17, 2018
2 parents ead074a + 35e6d20 commit fd19feb
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ protected function configure() : void

$this
->setName('migrations:diff')
->setAliases(['diff'])
->setDescription('Generate a migration by comparing your current database to your mapping information.')
->setHelp(<<<EOT
The <info>%command.name%</info> command generates a migration by comparing your current database to your mapping information:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ protected function configure() : void
{
$this
->setName('migrations:execute')
->setAliases(['execute'])
->setDescription(
'Execute a single migration version up or down manually.'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ protected function configure() : void
{
$this
->setName('migrations:generate')
->setAliases(['generate'])
->setDescription('Generate a blank migration class.')
->addOption(
'editor-cmd',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ protected function configure() : void
{
$this
->setName('migrations:latest')
->setAliases(['latest'])
->setDescription('Outputs the latest version number')
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ protected function configure() : void
{
$this
->setName('migrations:migrate')
->setAliases(['migrate'])
->setDescription(
'Execute a migration to a specified version or the latest available version.'
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ protected function configure() : void
{
$this
->setName('migrations:status')
->setAliases(['status'])
->setDescription('View the status of a set of migrations.')
->addOption(
'show-versions',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ protected function configure() : void
{
$this
->setName('migrations:up-to-date')
->setAliases(['up-to-date'])
->setDescription('Tells you if your schema is up-to-date.')
->setHelp(<<<EOT
The <info>%command.name%</info> command tells you if your schema is up-to-date:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ protected function configure() : void
{
$this
->setName('migrations:version')
->setAliases(['version'])
->setDescription('Manually add and delete migration versions from the version table.')
->addArgument(
'version',
Expand Down

0 comments on commit fd19feb

Please sign in to comment.