Skip to content

Commit 782be07

Browse files
committed
#4 display dependencies when prompting to start them
1 parent da2b05e commit 782be07

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Commands/Services/StartCommand.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ private function handleServiceDependencies(Service $service): void
168168
$deps = 'n';
169169
}
170170
if (!$deps) {
171-
$deps = $this->tools()->ask('Service <info>%s</info> has dependencies, do you want these to be started? (y/n) ', false, $service->name());
171+
$deps = $this->tools()->ask(
172+
'Service <info>%s</info> depends on <comment>%s</comment>, do you want these to be started? (y/n) ', false,
173+
$service->name(),
174+
$service->dependencies()->implode(', ')
175+
);
172176

173177
$this->tools()->input()->setOption('with-deps', $deps);
174178
}

0 commit comments

Comments
 (0)