Skip to content

Commit 2b9a484

Browse files
committed
Shortening Description
1 parent 3effe22 commit 2b9a484

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Command/Task/InfoCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
5252
{
5353
$service = $this->findService($input->getArgument('task'));
5454

55+
$description = ($service->getDescription() !== '' ? $service->getDescription() : 'No Description');
5556
$output->writeln(
5657
[
5758
"",
5859
'<fg=green>Task Name</fg=green>: '.$service->getName(),
59-
'<fg=green>Task Description</fg=green>: '.($service->getDescription() !== '' ? $service->getDescription() : 'No Description'),
60+
'<fg=green>Task Description</fg=green>: '.$description,
6061
"",
6162
"<fg=green>Options:</fg=green>"
6263
]

0 commit comments

Comments
 (0)