mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-10 11:10:18 +02:00
25 lines
407 B
Go
25 lines
407 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/jesseduffield/lazygit/pkg/gui/controllers/helpers"
|
|
)
|
|
|
|
type ControllerCommon struct {
|
|
*helpers.HelperCommon
|
|
IGetHelpers
|
|
}
|
|
|
|
type IGetHelpers interface {
|
|
Helpers() *helpers.Helpers
|
|
}
|
|
|
|
func NewControllerCommon(
|
|
c *helpers.HelperCommon,
|
|
IGetHelpers IGetHelpers,
|
|
) *ControllerCommon {
|
|
return &ControllerCommon{
|
|
HelperCommon: c,
|
|
IGetHelpers: IGetHelpers,
|
|
}
|
|
}
|