Skip to content

cmd/setec: make the output of "list" nicer for many versions - #174

Merged
creachadair merged 1 commit into
mainfrom
mjf/visual
Oct 2, 2026
Merged

creachadair merged 1 commit into
mainfrom
mjf/visual

Conversation

@creachadair

Copy link
Copy Markdown
Member

When a secret has a large number of versions, the output of "list" can be hard
to read in the default columnar format. To make it nicer, truncate the width to
a "reasonable" amount of most-recent versions.

To ensure the caller can still get the full output if needed, add a --json flag
so that the caller can still get the full, unclipped value. Apply this flag to
the "get" and "info" commands too, for symmetry.

@creachadair
creachadair requested a review from danderson October 2, 2026 03:03
When a secret has a large number of versions, the output of "list" can be hard
to read in the default columnar format. To make it nicer, truncate the width to
a "reasonable" amount of most-recent versions.

To ensure the caller can still get the full output if needed, add a --json flag
so that the caller can still get the full, unclipped value. Apply this flag to
the "get" and "info" commands too, for symmetry.
@creachadair
creachadair merged commit bc168fd into main Oct 2, 2026
1 check passed
@creachadair
creachadair deleted the mjf/visual branch October 2, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants