Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document "line" output format #5571

Merged
merged 1 commit into from
Jan 15, 2025
Merged

Document "line" output format #5571

merged 1 commit into from
Jan 15, 2025

Conversation

philrz
Copy link
Contributor

@philrz philrz commented Jan 14, 2025

tl;dr

This adds user-facing docs for the -f line output format added in #5570.

Details

It seemed appropriate to disclose the backslash escape sequences that affect this output. Since the changes in #5570 indicate we hand the job off to Go's fmt.Fprintln(), I'd normally have been fine just hyperlinking to some kind of table in the Go docs that disclose this info, but I couldn't seem to find such a table. I asked ChatGPT and it also complained that the official docs were sparse, but it did produce a table of its own and I confirmed via black box testing which ones seem to work, so that's what's in my table here. If those of you who know the code can point to a better reference or can spot entries missing from the table, please speak up.

While making these changes I noticed that I let the tables for input/output formats get out of alphabetical order in #5387, so I address that here as well.

@philrz philrz requested a review from a team January 14, 2025 01:20
@philrz philrz self-assigned this Jan 14, 2025
Comment on lines +403 to +404
The `line`, `text`, and `table` formats simplify data to fit within the
limitations of text-based output. They may be a good fit for use with other text-based shell
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to keep the details for all three of these formats still in one section but gave line top billing because it comes with the fewest caveats.

@philrz philrz merged commit 5e7fde9 into main Jan 15, 2025
5 checks passed
@philrz philrz deleted the line-output-docs branch January 15, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants