Skip to content

Show declared dataset name in list output - #42

Merged
timlichtenberg merged 1 commit into
mainfrom
tl/list-show-name
Sep 15, 2026
Merged

timlichtenberg merged 1 commit into
mainfrom
tl/list-show-name

Conversation

@timlichtenberg

Copy link
Copy Markdown
Member

When a manifest declares a human-readable name that differs from the dataset key, fwl-io list prints it on the line below the key. A dataset with no declared name falls back to its key, so nothing extra is printed for it. Control characters in a declared name are stripped before printing.

Two unit tests cover the name printed under the key and the control-character stripping. Closes #28.

When a manifest declares a human-readable name that differs from the dataset key, fwl-io list prints it on the line below the key. A dataset with no declared name falls back to its key, so nothing extra is printed for it.

The label is stripped of control characters before printing, so a manifest cannot inject extra lines into the listing through an embedded newline or terminal escape sequence.
@timlichtenberg
timlichtenberg merged commit d1023d0 into main Sep 15, 2026
7 checks passed
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.

Show the dataset name in the listing, or drop the field

1 participant