1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg/gui/controllers/common.go

25 lines
407 B
Go
Raw Normal View History

2022-02-06 06:54:26 +02:00
package controllers
import (
"github.com/jesseduffield/lazygit/pkg/gui/controllers/helpers"
)
2023-03-23 09:47:29 +02:00
type ControllerCommon struct {
*helpers.HelperCommon
IGetHelpers
}
type IGetHelpers interface {
Helpers() *helpers.Helpers
2022-02-06 06:54:26 +02:00
}
func NewControllerCommon(
c *helpers.HelperCommon,
2023-03-23 09:47:29 +02:00
IGetHelpers IGetHelpers,
) *ControllerCommon {
return &ControllerCommon{
HelperCommon: c,
IGetHelpers: IGetHelpers,
2022-02-06 06:54:26 +02:00
}
}