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

Feature Request: add --echo-rowno and --echo-row options #130

Open
jqnatividad opened this issue Mar 2, 2025 · 0 comments
Open

Feature Request: add --echo-rowno and --echo-row options #130

jqnatividad opened this issue Mar 2, 2025 · 0 comments

Comments

@jqnatividad
Copy link
Contributor

It'd be great if these two "echo" options can be added that is functionally symmetric to the existing --echo-column <column_name>, whereby:

  • --echo-rowno
    print the rowno of the selected row to stdout
  • --echo-row
    print the selected record as a CSV to stdout. If --no-headers is on, the printed CSV will have no headers. Otherwise, it will have the header. It will also use the specified --delimiter.

As a stretch goal, --echo-row could have a <format> argument, where format could be:

  • csv (default)
  • jsonl
  • json
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

No branches or pull requests

1 participant