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

split context common from helper common

This commit is contained in:
Jesse Duffield
2023-03-23 12:35:07 +11:00
parent f081358943
commit 43251e7275
55 changed files with 156 additions and 133 deletions

View File

@ -6,26 +6,26 @@ import (
)
type ListControllerFactory struct {
c *types.HelperCommon
*controllerCommon
}
func NewListControllerFactory(c *types.HelperCommon) *ListControllerFactory {
func NewListControllerFactory(c *controllerCommon) *ListControllerFactory {
return &ListControllerFactory{
c: c,
controllerCommon: c,
}
}
func (self *ListControllerFactory) Create(context types.IListContext) *ListController {
return &ListController{
baseController: baseController{},
c: self.c,
context: context,
baseController: baseController{},
controllerCommon: self.controllerCommon,
context: context,
}
}
type ListController struct {
baseController
c *types.HelperCommon
*controllerCommon
context types.IListContext
}