Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

Commit 7b1f36a

Browse files
committed
Display the org type in the project:list (projects) command
1 parent 1a7e83d commit 7b1f36a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/Command/Project/ProjectListCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class ProjectListCommand extends CommandBase
2323
'organization_name' => 'Organization',
2424
'organization_id' => 'Organization ID',
2525
'organization_label' => 'Organization label',
26+
'organization_type' => 'Organization type',
2627
'status' => 'Status',
2728
'created_at' => 'Created',
2829
];
@@ -34,6 +35,9 @@ protected function configure()
3435
$this->defaultColumns = ['id', 'title', 'region'];
3536
if ($organizationsEnabled) {
3637
$this->defaultColumns[] = 'organization_name';
38+
if ($this->config()->get('api.organization_types')) {
39+
$this->defaultColumns[] = 'organization_type';
40+
}
3741
}
3842
$this
3943
->setName('project:list')
@@ -172,6 +176,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
172176
'organization_id' => $orgInfo ? $orgInfo->id : '',
173177
'organization_name' => $orgInfo ? $orgInfo->name : '',
174178
'organization_label' => $orgInfo ? $orgInfo->label : '',
179+
'organization_type' => $orgInfo ? (string) $orgInfo->getProperty('type', false) : '',
175180
'status' => $projectInfo->status,
176181
'created_at' => $formatter->format($projectInfo->created_at, 'created_at'),
177182
'[deprecated]' => '',

0 commit comments

Comments
 (0)