1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

add tap function

This commit is contained in:
Jesse Duffield
2022-12-27 21:25:11 +11:00
parent b166b8f776
commit 53e06b71ae
19 changed files with 210 additions and 230 deletions

View File

@ -194,3 +194,11 @@ func (self *View) NavigateToListItem(matcher *matcher) *View {
return self
}
// for when you want to make some assertion unrelated to the current view
// without breaking the method chain
func (self *View) Tap(f func()) *View {
f()
return self
}