Skip to content

Commit da219e4

Browse files
Enhance output formatting
1 parent 6cd55e5 commit da219e4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/ComposerPlugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public static function getSubscribedEvents() : array
6464
*/
6565
public function runPostInstallScript(Event $event) : void
6666
{
67+
$event->getIO()->write('CaptainHook Composer Plugin');
6768
if (!$this->isCaptainHookInstalled()) {
6869
// reload the autoloader to make sure CaptainHook is available
6970
$vendorDir = $event->getComposer()->getConfig()->get('vendor-dir');
@@ -72,7 +73,7 @@ public function runPostInstallScript(Event $event) : void
7273

7374
// if it's still not available end the plugin execution
7475
if (!$this->isCaptainHookInstalled()) {
75-
$event->getIO()->write('CaptainHook not properly installed try to run composer update');
76+
$event->getIO()->write(' <info>CaptainHook not properly installed try to run composer update</info>');
7677
return;
7778
}
7879
// otherwise run the installer

src/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function getConfigFile() : string
108108
private function assertConfigFile(SplFileInfo $configFile) : void
109109
{
110110
if ($configFile->isFile()) {
111-
$this->io->write('Using CaptainHook config: ' . $configFile->getFilename());
111+
$this->io->write(' <info>Using CaptainHook config: ' . $configFile->getFilename() . '</info>');
112112
return;
113113
}
114114

0 commit comments

Comments
 (0)