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:
@ -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(),
|
||||
|
Reference in New Issue
Block a user