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

edit: add qsv edit command #2074

Merged
merged 4 commits into from
Aug 22, 2024
Merged

edit: add qsv edit command #2074

merged 4 commits into from
Aug 22, 2024

Conversation

rzmk
Copy link
Collaborator

@rzmk rzmk commented Aug 22, 2024

Adds the qsv edit command for qsv and qsvlite, which allows replacing a cell's value specified by a column and row.

qsv edit <filepath> <col> <row> <value>

qsv-edit-demo


Notes:

  • Select a column by name, index, or the last column with _
  • -n, --no-headers to allow for editing the header row and using it as row index 0
  • -o, --output to output to a file
  • Shell completions for qsv edit
  • 4 tests for qsv edit

Based on #2046.

src/cmd/edit.rs Fixed Show fixed Hide fixed
src/cmd/edit.rs Fixed Show fixed Hide fixed
src/cmd/edit.rs Fixed Show fixed Hide fixed
src/cmd/edit.rs Fixed Show fixed Hide fixed
@rzmk
Copy link
Collaborator Author

rzmk commented Aug 22, 2024

I think it'd be useful if there's also an in-place version of this command when given a file (perhaps a flag?).

@jqnatividad jqnatividad merged commit 5652e22 into master Aug 22, 2024
16 checks passed
@jqnatividad
Copy link
Collaborator

I think it'd be useful if there's also an in-place version of this command when given a file (perhaps a flag?).

Yep! I agree that'd be useful... merged just the same as we keep iterating...

@rzmk rzmk deleted the qsv-edit branch August 22, 2024 11:41
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