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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DropDatabaseDoctrineCommand shortcuts #1072

Closed
Guikingone opened this issue Nov 26, 2019 · 10 comments
Closed

DropDatabaseDoctrineCommand shortcuts #1072

Guikingone opened this issue Nov 26, 2019 · 10 comments
Projects
Milestone

Comments

@Guikingone
Copy link
Contributor

Hi everyone 👋

Small question about DropDatabaseDoctrineCommand, is there any historical reasons to not define a shortcut when it comes to force, shard, connection and if-exists ? 🤔

Thanks a lot for the answer and have a great day 🙂

@alcaeus
Copy link
Member

alcaeus commented Nov 26, 2019

is there any historical reasons [...]

Not that I'm aware of. Not sure if shortcuts are necessary, but then on the other hand I don't have a particularly strong opinion against them. 🤷‍♂️

@Guikingone
Copy link
Contributor Author

Hi 👋

Thanks for the feedback, is that something that I can contribute on? It is worth the work? 🤔

@greg0ire
Copy link
Member

Maybe the reason would be that it's best the user is 100% sure they know what they are doing when using such a dangerous command. It's worth the work if you use that command often, but not sure all the options are used very often besides --force

@ostrolucky
Copy link
Member

Introducing shortcuts would block these shortcuts from use in future options. I also don't see big benefit of having them.

@SenseException
Copy link
Member

It's more a DX thing here. Less type-work for a user and a more fluent work with the command in case it has to be called more than just one time with different options. The benefit depends on the typing preferences of a user.

@Guikingone
Copy link
Contributor Author

Agree with @SenseException, this issue is really focused on the DX vision, simple example when using project with Makefile's, most of the time, we use something similar to make db-drop but what if we need to use the command without make (or in a Docker container?), typing --force can be boring but it's not something that block us, don't get me wrong, it's really about the DX.

So, if you think that there's no benefits of defining an alias, I think that we can close this issue 🙂

@alcaeus
Copy link
Member

alcaeus commented Dec 10, 2019

I don't think it's bad to have the shortcuts. @Guikingone since you have some in mind, do you want to create a PR for them? Thanks!

@Guikingone
Copy link
Contributor Author

@alcaeus Yes, no problem, I'm gonna start working on it tomorrow 🙂

@ostrolucky
Copy link
Member

Are you still interested to contribute this? If so, when? If you don't, we should close this issue, as I don't see enough support from community.

@Guikingone
Copy link
Contributor Author

Guikingone commented Jan 26, 2020

Hi @ostrolucky 👋

Yes, I've a first valid implementation (with tests), I push it tomorrow as a PR 🙂

Sorry for the delay.

Guikingone added a commit to Guikingone/DoctrineBundle that referenced this issue Jan 27, 2020
This feature allow to use shortcuts when possible instead of full InputOption name.
Implement doctrine#1072
Guikingone added a commit to Guikingone/DoctrineBundle that referenced this issue Jan 27, 2020
This feature allow to use shortcuts when possible instead of full InputOption name.
Implement doctrine#1072
Guikingone added a commit to Guikingone/DoctrineBundle that referenced this issue Jan 28, 2020
This feature allow to use shortcuts when possible instead of full InputOption name.
Implement doctrine#1072
Guikingone added a commit to Guikingone/DoctrineBundle that referenced this issue Jan 28, 2020
This feature allow to use shortcuts when possible instead of full InputOption name.
Implement doctrine#1072
Guikingone added a commit to Guikingone/DoctrineBundle that referenced this issue Jan 28, 2020
This feature allow to use shortcuts when possible instead of full InputOption name.
Implement doctrine#1072
Guikingone added a commit to Guikingone/DoctrineBundle that referenced this issue Jan 28, 2020
This feature allow to use shortcuts when possible instead of full InputOption name.
Implement doctrine#1072
@ostrolucky ostrolucky added this to the 2.1.0 milestone Feb 1, 2020
@alcaeus alcaeus changed the title [FEAT] DropDatabaseDoctrineCommand shortcuts DropDatabaseDoctrineCommand shortcuts May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

5 participants