Project

General

Profile

Actions

Bug #103858

open

typo3 list command does not work propperly for other formats then txt

Added by Lina Wolf 27 days ago. Updated 20 days ago.

Status:
Accepted
Priority:
Should have
Assignee:
-
Category:
CLI
Target version:
-
Start date:
2024-05-19
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

ddev exec bin/typo3 list

and

ddev exec bin/typo3 list --format=json > commands.json

For example the first contains the site namespace while it is missing in the second.
I verified this to happen in the current main-Core and in installations of TYPO3 13.1 and 12.4.

I suspect this is to the fact that the ListCommand registers a custom TextDescriptor
for format txt but not the other supported formats.

We - the documentation team - want to use the json format to auto-generate documentation:

https://github.com/TYPO3-Documentation/t3docs-console-command so this bug is now really hindering that...

Actions #1

Updated by Lina Wolf 27 days ago

  • Subject changed from typo3 list command does not work propperly for other formats then html to typo3 list command does not work propperly for other formats then txt
Actions #2

Updated by Georg Ringer 20 days ago

  • Status changed from New to Accepted
Actions #3

Updated by Garvin Hicking 20 days ago

I'll try to get at least a PoC for this as a core patch. Problem is the main TextDescriptor is heavily patched from vanilla symfony, and all that had to be duplicated to the jsonDescriptor (and probably xml too). Might be harder than it sounds due to all that custom processing.

Actions

Also available in: Atom PDF