-
Notifications
You must be signed in to change notification settings - Fork 49
config-provider list: align output style with operatorList (emoji + bullet points) #1079
Copy link
Copy link
Open
Description
Context / Problem
The config-provider list command outputs a list grouped by organisation, similar to operator commands (otoroshi list, keycloak list, matomo list, metabase list), but doesn't follow the same formatting style.
clever otoroshi (via operatorList in src/lib/operator-commands.js):
🔎 Found 2 Otoroshi operators:
• orga_xxx (ACME FOO)
• fs-test-operator-otoroshi (otoroshi_xxx)
• orga_yyy (ACME BAR)
• test-addon-otoroshi (otoroshi_yyy)
clever config-provider list (src/commands/config-provider/config-provider.list.command.js):
Found 1 configuration provider:
orga_yyy (ACME BAR)
test-addon-config (config_xxx)
Missing:
🔎emoji prefix on the header line•bullet points on org lines and item lines
TODO
- Add
🔎emoji prefix to the header line (line 32) and the empty case (add a line similar to operatorList) - Add
•before each org group header (line 36) - Add
•before each provider item (line 38) - Consider extracting a generic helper for displaying grouped-by-org lists (the pattern is duplicated between
operatorListinsrc/lib/operator-commands.jsandconfig-provider list— a shared helper would ensure consistent formatting and reduce duplication for future similar commands)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels