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

Add alias to require command #10953

Merged
merged 1 commit into from Jul 18, 2022
Merged

Conversation

dmitryuk
Copy link
Contributor

@dmitryuk dmitryuk commented Jul 18, 2022

I think require command is one of most frequency used by developers. Why do not create shortcut alias for it?
Most commands like install or update already have shortcut aliases.
Much easy to write composer r package:version instead of composer require package:version. It will also pretend typo in require word within fast-writing cases.

The PR kindly adds r alias to require command.

@Seldaek Seldaek added this to the 2.4 milestone Jul 18, 2022
@Seldaek
Copy link
Member

Seldaek commented Jul 18, 2022

Just so you know, you can already use composer req which is non-ambiguous with remove and reinstall. re conflicts woth those two and r as well, so that doesn't work. But yes I agree we can add an alias for require that sounds sensible.

@Seldaek Seldaek merged commit 8c488b9 into composer:main Jul 18, 2022
emahorvat52 pushed a commit to emahorvat52/composer that referenced this pull request Feb 3, 2023
Co-authored-by: a.dmitryuk <a.dmitryuk@movavi.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants