Skip to content

Commit

Permalink
#4 display dependencies when prompting to start them
Browse files Browse the repository at this point in the history
  • Loading branch information
dave-redfern committed Aug 20, 2021
1 parent da2b05e commit 782be07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Commands/Services/StartCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ private function handleServiceDependencies(Service $service): void
$deps = 'n';
}
if (!$deps) {
$deps = $this->tools()->ask('Service <info>%s</info> has dependencies, do you want these to be started? (y/n) ', false, $service->name());
$deps = $this->tools()->ask(
'Service <info>%s</info> depends on <comment>%s</comment>, do you want these to be started? (y/n) ', false,
$service->name(),
$service->dependencies()->implode(', ')
);

$this->tools()->input()->setOption('with-deps', $deps);
}
Expand Down

0 comments on commit 782be07

Please sign in to comment.