dbcli / litecli

CLI for SQLite Databases with auto-completion and syntax highlighting
https://litecli.com
BSD 3-Clause "New" or "Revised" License
2.06k stars 67 forks source link

Make it possible to use .once more than once #147

Closed mjpieters closed 1 year ago

mjpieters commented 1 year ago

Description

When .once has been used, reset written_to_once_file as otherwise once_file is cleared after every subsequent command, including additional .once commands.

Fixes #146.

Checklist

codecov-commenter commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@c68d802). Click here to learn what that means. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #147   +/-   ##
=======================================
  Coverage        ?   62.70%           
=======================================
  Files           ?       23           
  Lines           ?     1995           
  Branches        ?        0           
=======================================
  Hits            ?     1251           
  Misses          ?      744           
  Partials        ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update c68d802...3f6013f. Read the comment docs.

amjith commented 1 year ago

@mjpieters Thank you for the PR, I've tested this locally and confirmed that this PR does fix the issue you highlighted.

BTW, I had a vague recognition of your name and was trying to figure out where I had seen it. Looking at your website it finally clicked that I had seen your name in Stackoverflow answers quite a bit. Thank you for all your contributions, you've saved me many hours. 😄