Skip to content

Commit

Permalink
update console script to list apps
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheg committed Nov 30, 2022
1 parent c0229c3 commit 29d2812
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion console/app_list.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ protected function execute(InputInterface $input, OutputInterface $output) {
$applications = \Skeleton\Core\Application::get_all();

$table = new Table($output);
$table->setHeaders(['Name', 'Hostnames']);
$table->setHeaders(['Name', 'Hostnames', 'Type']);

$rows = [];
foreach ($applications as $application) {
$rows[] = [
$application->name,
implode(', ', $application->config->hostnames),
$application->config->application_type
];
}
$table->setRows($rows);
Expand Down

0 comments on commit 29d2812

Please sign in to comment.