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

Alias remove with delete command #248

Closed
1 task done
dingo-d opened this issue Aug 7, 2020 · 4 comments
Closed
1 task done

Alias remove with delete command #248

dingo-d opened this issue Aug 7, 2020 · 4 comments

Comments

@dingo-d
Copy link

dingo-d commented Aug 7, 2020

Feature Request

Describe your use case and the problem you are facing

Every time I go and delete the default plugins or some themes using wp theme/plugin delete I first do wp theme/plugin remove, and I get reminded in the output

Did you mean 'delete'?

Describe the solution you'd like

Symfony console commands are 'smart' to recognize typos, or a similar command (not sure how they do that, but it's neat). It would be cool to have remove as an alias to delete so both would work.

These are the two that come to mind because I use them on a weekly basis.

@danielbachhuber
Copy link
Member

Thanks for the suggestion, @dingo-d

delete is a specific term in WordPress. Given WordPress offers the suggested command when you run wp plugin remove, I don't think we should introduce new terms that aren't present in the UI.

@danielbachhuber danielbachhuber closed this as not planned Won't fix, can't repro, duplicate, stale Jul 13, 2023
@dingo-d
Copy link
Author

dingo-d commented Jul 13, 2023

Would it be possible to then run the command if the suggestion appears?

Did you mean 'delete'? [Y]

Then you'd press Y and it would delete the plugin?

@danielbachhuber
Copy link
Member

@dingo-d I don't have a strong opinion one way or the other. I think there was some issue open to that effect in https://github.com/wp-cli/wp-cli/issues but I can't find it. If you'd like to open a new one with your proposal, we can have some discussion about it.

@dingo-d
Copy link
Author

dingo-d commented Jul 14, 2023

Opened up a discussion not to spam the issues board: https://github.com/orgs/wp-cli/discussions/5813 👍🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants