8000 Add rm alias to composer remove command by dmitryuk · Pull Request #11367 · composer/composer · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add rm alias to composer remove command #11367

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

Merged
merged 2 commits into from
Mar 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/03-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ If you do not specify a package, Composer will prompt you to search for a packag
* **--apcu-autoloader-prefix:** Use a custom prefix for the APCu autoloader cache.
Implicitly enables `--apcu-autoloader`.

## remove
## remove / rm

The `remove` command removes packages from the `composer.json` file from
the current directory.
Expand Down
3 changes: 2 additions & 1 deletion src/Composer/Command/RemoveCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ protected function configure()
{
$this
->setName('remove')
->setAliases(['rm'])
->setDescription('Removes a package from the require or require-dev')
->setDefinition([
new InputArgument('packages', InputArgument::IS_ARRAY, 'Packages that should be removed.', null, $this->suggestRootRequirement()),
Expand Down Expand Up @@ -73,7 +74,7 @@ protected function configure()

<info>php composer.phar remove</info>

Read more at https://getcomposer.org/doc/03-cli.md#remove
Read more at https://getcomposer.org/doc/03-cli.md#remove-rm
EOT
)
;
Expand Down
0