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

Consolidate input and output handling #23

Open
9 tasks
demery opened this issue Aug 14, 2023 · 1 comment
Open
9 tasks

Consolidate input and output handling #23

demery opened this issue Aug 14, 2023 · 1 comment

Comments

@demery
Copy link
Owner

demery commented Aug 14, 2023

Consolidate input and output handling.

  • Have common input selection for scripts with similar IO profiles:
    • Accepts CSV from STDIN or as file argument
      • csv-slice
      • csv-filter
      • csv-cut
    • Accepts a list of CSVs as file arguments or a piped list of files
      • css-cat
        • Question: Instead of as a list of CSVs as it does now, should csv-cat treat input from STDIN as a CSV?
  • Have all scripts use a common -o --output FILENAME method for selecting out; default should be STDOUT
@demery
Copy link
Owner Author

demery commented Aug 20, 2023

csv-cat: The unix cat utility reads input from standard in as a file. The correct approach may be to do the same here for consistency. However, csv-cat also does some things cat does not: sort and uniqueness operations. Should those behaviors be moved to separate programs?

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

When branches are created from issues, their pull requests are automatically linked.

1 participant