mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
more refactoring
This commit is contained in:
10
pkg/gui/controllers/attach.go
Normal file
10
pkg/gui/controllers/attach.go
Normal file
@ -0,0 +1,10 @@
|
||||
package controllers
|
||||
|
||||
import "github.com/jesseduffield/lazygit/pkg/gui/types"
|
||||
|
||||
func AttachControllers(context types.Context, controllers ...types.IController) {
|
||||
for _, controller := range controllers {
|
||||
context.AddKeybindingsFn(controller.GetKeybindings)
|
||||
context.AddMouseKeybindingsFn(controller.GetMouseKeybindings)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user