mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
40 lines
927 B
Go
40 lines
927 B
Go
package controllers
|
|
|
|
import (
|
|
"github.com/jesseduffield/lazygit/pkg/commands"
|
|
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
|
|
"github.com/jesseduffield/lazygit/pkg/gui/context"
|
|
"github.com/jesseduffield/lazygit/pkg/gui/controllers/helpers"
|
|
"github.com/jesseduffield/lazygit/pkg/gui/types"
|
|
)
|
|
|
|
type controllerCommon struct {
|
|
c *types.HelperCommon
|
|
os *oscommands.OSCommand
|
|
git *commands.GitCommand
|
|
helpers *helpers.Helpers
|
|
model *types.Model
|
|
contexts *context.ContextTree
|
|
modes *types.Modes
|
|
}
|
|
|
|
func NewControllerCommon(
|
|
c *types.HelperCommon,
|
|
os *oscommands.OSCommand,
|
|
git *commands.GitCommand,
|
|
helpers *helpers.Helpers,
|
|
model *types.Model,
|
|
contexts *context.ContextTree,
|
|
modes *types.Modes,
|
|
) *controllerCommon {
|
|
return &controllerCommon{
|
|
c: c,
|
|
os: os,
|
|
git: git,
|
|
helpers: helpers,
|
|
model: model,
|
|
contexts: contexts,
|
|
modes: modes,
|
|
}
|
|
}
|