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

Add AppState to common.Common

This commit is contained in:
Stefan Haller
2023-08-28 12:24:58 +02:00
parent e895052437
commit 18c5780485
4 changed files with 7 additions and 2 deletions

View File

@ -27,12 +27,13 @@ func NewDummyCommon() *common.Common {
}
}
func NewDummyCommonWithUserConfig(userConfig *config.UserConfig) *common.Common {
func NewDummyCommonWithUserConfigAndAppState(userConfig *config.UserConfig, appState *config.AppState) *common.Common {
tr := i18n.EnglishTranslationSet()
return &common.Common{
Log: NewDummyLog(),
Tr: &tr,
UserConfig: userConfig,
AppState: appState,
// TODO: remove dependency on actual filesystem in tests and switch to using
// in-memory for everything
Fs: afero.NewOsFs(),