@@ -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