altsem / gitu

A TUI Git client inspired by Magit
MIT License
1.7k stars 88 forks source link

feat: add quit confirmation #89

Closed jondysinger closed 4 months ago

jondysinger commented 4 months ago

Implements a prompt if the user initiates a quit from the base screen.

? Really quit? (y or n) ›
jondysinger commented 4 months ago

I added commits to close the prompt if the user cancels it and for the unit tests. I'm still planning on looking into having the functionality be dependent on configuration.

jondysinger commented 4 months ago

OK I added a config entry and defaulted the behavior to not confirm the quit. I then squashed my commits. It's ready for re-review.

codecov-commenter commented 4 months ago

Codecov Report

Attention: Patch coverage is 54.28571% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 85.52%. Comparing base (f526a46) to head (8405439).

Files Patch % Lines
src/state.rs 33.33% 16 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #89 +/- ## ========================================== - Coverage 85.84% 85.52% -0.33% ========================================== Files 37 37 Lines 3264 3295 +31 ========================================== + Hits 2802 2818 +16 - Misses 462 477 +15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.