Skip to content

config-provider list: align output style with operatorList (emoji + bullet points) #1079

@hsablonniere

Description

@hsablonniere

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 operatorList in src/lib/operator-commands.js and config-provider list — a shared helper would ensure consistent formatting and reduce duplication for future similar commands)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions