1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-24 06:42:03 +03:00
Files
lazygit/pkg/gui/popup
Stefan Haller 20600b9b5c Add convenience function ConfirmIf
It's a very common pattern in the code base to have some code that we want to
run either directly, or with a confirmation, depending on some condition. In
most cases this is solved by creating a local helper function that we call
either directly or from within the HandleConfirm of the confirmation; provide a
convenience helper that makes this easier.
2025-07-08 16:41:22 +02:00
..