diff --git a/src/Console/Command/CategoriesTreeCommand.php b/src/Console/Command/CategoriesTreeCommand.php index 0a61eed..1a1727f 100644 --- a/src/Console/Command/CategoriesTreeCommand.php +++ b/src/Console/Command/CategoriesTreeCommand.php @@ -46,13 +46,15 @@ class CategoriesTreeCommand extends Command foreach ($response->getData() as $category) { if (isset($category['name'])) { - $output->writeln(sprintf('%s', $category['name'])); + $output->writeln(sprintf('`- %s', $category['name'])); } if (!empty($category['cats'])) { + $isFirst = true; + foreach ($category['cats'] as $subCategory) { if (isset($subCategory['name'])) { - $output->writeln(sprintf('> %s', $subCategory['name'])); + $output->writeln(sprintf(' |- %s', $subCategory['name'])); } } }