Skip to content

Improve profile, auth, and store list/show output with structured tables and health indicators #128

@rmanibus

Description

@rmanibus

Summary

The profile, auth, and store list/show commands still use mostly flat text output, even though the rest of the CLI already uses go-pretty tables successfully for snapshots and key slots.

Problem

Current output is readable for very small configs, but it becomes harder to scan as soon as users have multiple stores, auth entries, and profiles. It also hides useful derived information such as reference health, usage counts, and provider/store types.

Proposal

Upgrade these commands to use structured table-based output and lightweight color-coded health/status indicators.

list commands

  • render store list, auth list, and profile list as tables
  • include derived columns such as:
    • usage counts
    • store/auth type
    • auth mode
    • profile health/status
  • keep status color restrained and semantic:
    • green for healthy
    • yellow for warnings/disabled
    • red for broken references or invalid config

show commands

  • render store show, auth show, and profile show as grouped inspection views
  • use small key/value tables for:
    • primary identity/details
    • resolved references
    • credential reference details
    • usage by profiles
    • optional warnings

Why this matters

This would make config inspection feel much more polished and trustworthy, especially as workstation onboarding and profile-driven workflows become more important.

Implementation notes

  • reuse the existing github.com/jedib0t/go-pretty/v6/table dependency already used elsewhere in the CLI
  • keep machine-unfriendly formatting contained to human-oriented commands
  • preserve scriptability later with optional --json output if needed

Nice follow-ups

  • TTY-aware color disabling
  • optional compact/wide modes
  • --json support for config inspection commands

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliCore CLI command surface and UXenhancementNew feature or request

    Type

    No fields configured for Task.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions