Skip to content

Commit ee0bbd3

Browse files
committed
Update the installation command to use the prefix 'dev-tools:' instead of 'install'.
Signed-off-by: Felipe Sayão Lobato Abreu <github@mentordosnerds.com>
1 parent b3e071a commit ee0bbd3

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/running/specialized-commands.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,4 @@ Adds or updates dev-tools scripts in your ``composer.json``, copies reusable Git
8080

8181
.. code-block:: bash
8282
83-
composer dev-tools install
83+
composer dev-tools:install

src/Command/InstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ final class InstallCommand extends AbstractCommand
4343
protected function configure(): void
4444
{
4545
$this
46-
->setName('install')
46+
->setName('dev-tools:install')
4747
->setDescription(
4848
'Installs and synchronizes dev-tools scripts, GitHub Actions workflows, and .editorconfig in the root project.'
4949
)

src/Composer/Plugin.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function onPostInstall(Event $event): void
7979
{
8080
$event->getComposer()
8181
->getEventDispatcher()
82-
->dispatchScript('install', true);
82+
->dispatchScript('dev-tools:install', true);
8383
}
8484

8585
/**
@@ -96,7 +96,7 @@ public function onPostUpdate(Event $event): void
9696
{
9797
$event->getComposer()
9898
->getEventDispatcher()
99-
->dispatchScript('install', true);
99+
->dispatchScript('dev-tools:install', true);
100100
}
101101

102102
/**

tests/Composer/PluginTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function onPostInstallWillInstallScripts(): void
138138

139139
// Mock EventDispatcher
140140
$eventDispatcher = $this->prophesize(EventDispatcher::class);
141-
$eventDispatcher->dispatchScript('install', true)
141+
$eventDispatcher->dispatchScript('dev-tools:install', true)
142142
->willReturn(0);
143143
$this->composer->getEventDispatcher()
144144
->willReturn($eventDispatcher->reveal());
@@ -170,7 +170,7 @@ public function onPostUpdateWillInstallScripts(): void
170170

171171
// Mock EventDispatcher
172172
$eventDispatcher = $this->prophesize(EventDispatcher::class);
173-
$eventDispatcher->dispatchScript('install', true)
173+
$eventDispatcher->dispatchScript('dev-tools:install', true)
174174
->willReturn(0);
175175
$this->composer->getEventDispatcher()
176176
->willReturn($eventDispatcher->reveal());

0 commit comments

Comments
 (0)