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

Extend and fix overwrite command #272

Merged
merged 60 commits into from
Nov 9, 2024

Conversation

CobbCoding1
Copy link
Contributor

This PR introduces:

  • Adds --A1 flag to add
    • Allows the user to use excel-style cells (A1 is quivalent to 0-0)
  • Adds --no-timestamp flag to add
    • Saves the overwrite without a timestamp, leaves it blank
  • Changes timestamps to use unix time rather than a date format
  • Adds more tests
  • Fixes issue with timestamps in the tests falling behind, causing a test error

CobbCoding1 and others added 30 commits October 24, 2024 16:32
* Add boilerplate for overwrite command

* Add more boilerplate for overwrite and update help.c message

* Prepare overwrite implementation

* Setup sqlite in overwrite.c and add parsing for non-flag arguments

* Add sqlite initialization functions to overwrite, and messages for certain subcommands

* Add simple test for overwrite

* clang-format
* Add boilerplate for overwrite command

* Add more boilerplate for overwrite and update help.c message

* Prepare overwrite implementation

* Setup sqlite in overwrite.c and add parsing for non-flag arguments

* Add sqlite initialization functions to overwrite, and messages for certain subcommands

* Add simple test for overwrite

* clang-format

* Add improved testing for overwrite command

* Update usage and tests to reflect the usage

* Fix test makefile
CobbCoding1 and others added 28 commits October 31, 2024 15:16
… a zsv_echo --overwrite-auto test, and update to use zsv_csv_writer
Fix memory leak
Comment out sqlite3_init and _exit(); if we use these, they will need to be managed consistently across all commands
rename _exit() to _free() for consistency with the rest of project code
fix test-timestamp to work for alpine
v2 of prior commit
@liquidaty liquidaty merged commit a7e0c09 into liquidaty:main Nov 9, 2024
11 checks passed
@CobbCoding1 CobbCoding1 deleted the overwrite-command branch November 9, 2024 21:09
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