1
0
Fork 0

Add rm alias to composer remove command (#11367)

* rm alias

* review
pull/11375/head
Alexander Dmitryuk 2023-03-11 03:27:20 +06:00 committed by GitHub
parent acc1869742
commit d1ab1255b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -43,6 +43,7 @@ class RemoveCommand extends BaseCommand
{
$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()),
@ -73,7 +74,7 @@ list of installed packages
<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
)
;