Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Commands shortcuts #1132

Merged
merged 1 commit into from Jan 31, 2020
Merged

Conversation

Guikingone
Copy link
Contributor

@Guikingone Guikingone commented Jan 27, 2020

Hi everyone 馃憢

As notified here: #1072, here's the PR for the commands shortcuts, I need to finish the tests (on commands that don't have ones for now).

Feel free to give feedback 馃檪

@greg0ire
Copy link
Member

Please improve your commit message according to the contributing guide.

@Guikingone Guikingone force-pushed the feat/command-shortcuts branch 2 times, most recently from 6b7135f to 7106ce4 Compare January 27, 2020 13:13
Tests/Command/DropDatabaseDoctrineTest.php Outdated Show resolved Hide resolved
Tests/Command/DropDatabaseDoctrineTest.php Outdated Show resolved Hide resolved
Tests/Command/DropDatabaseDoctrineTest.php Outdated Show resolved Hide resolved
@Guikingone Guikingone force-pushed the feat/command-shortcuts branch 2 times, most recently from 505e09c to 9155243 Compare January 28, 2020 08:31
ostrolucky
ostrolucky previously approved these changes Jan 28, 2020
@ostrolucky ostrolucky added this to the 2.1.0 milestone Jan 28, 2020
@ostrolucky ostrolucky self-assigned this Jan 28, 2020
@Guikingone
Copy link
Contributor Author

Just pushed a refactor when it comes to --if-exists, as suggested by @Pierstoval , the -econflitcs with --env, i is used now.

This feature allow to use shortcuts when possible instead of full InputOption name.
Implement doctrine#1072
/**
* @dataProvider provideForceOption
*/
public function testExecute(array $options) : void
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've never tried this myself, but I think using variadics here could help simplify the data providers

@ostrolucky ostrolucky merged commit a6b58a2 into doctrine:master Jan 31, 2020
@alcaeus alcaeus changed the title [FEAT] Commands shortcuts Commands shortcuts May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants