mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-04 10:34:55 +02:00
23 lines
766 B
Go
23 lines
766 B
Go
package gui
|
|
|
|
import (
|
|
"github.com/jesseduffield/lazygit/pkg/commands/git_commands"
|
|
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
|
|
"github.com/jesseduffield/lazygit/pkg/config"
|
|
"github.com/jesseduffield/lazygit/pkg/updates"
|
|
"github.com/jesseduffield/lazygit/pkg/utils"
|
|
)
|
|
|
|
// NewDummyGui creates a new dummy GUI for testing
|
|
func NewDummyUpdater() *updates.Updater {
|
|
newAppConfig := config.NewDummyAppConfig()
|
|
dummyUpdater, _ := updates.NewUpdater(utils.NewDummyCommon(), newAppConfig, oscommands.NewDummyOSCommand())
|
|
return dummyUpdater
|
|
}
|
|
|
|
func NewDummyGui() *Gui {
|
|
newAppConfig := config.NewDummyAppConfig()
|
|
dummyGui, _ := NewGui(utils.NewDummyCommon(), newAppConfig, &git_commands.GitVersion{}, NewDummyUpdater(), false, "")
|
|
return dummyGui
|
|
}
|