Skip to content

Commit

Permalink
Add rm alias to composer remove command (#11367)
Browse files Browse the repository at this point in the history
* rm alias

* review
  • Loading branch information
dmitryuk committed Mar 10, 2023
1 parent acc1869 commit d1ab125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
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 comments on commit d1ab125

Please sign in to comment.