1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-11-25 22:32:13 +02:00

Add "CopyToClipboard" command to ConfirmationController

This commit is contained in:
kyu08
2025-08-10 19:04:00 +09:00
committed by Stefan Haller
parent 0573529f8a
commit 3fa5a8eddd
5 changed files with 75 additions and 0 deletions

View File

@@ -36,6 +36,11 @@ func (self *Popup) Alert() *AlertDriver {
return &AlertDriver{t: self.t}
}
func (self *AlertDriver) Tap(f func()) *AlertDriver {
self.getViewDriver().Tap(f)
return self
}
func (self *Popup) inAlert() {
// basically the same thing as a confirmation popup with the current implementation
self.t.assertWithRetries(func() (bool, string) {