2020-09-29 11:10:57 +02:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
2020-10-03 06:54:55 +02:00
|
|
|
yaml "github.com/jesseduffield/yaml"
|
2020-09-29 11:10:57 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// NewDummyAppConfig creates a new dummy AppConfig for testing
|
|
|
|
func NewDummyAppConfig() *AppConfig {
|
|
|
|
appConfig := &AppConfig{
|
|
|
|
Name: "lazygit",
|
|
|
|
Version: "unversioned",
|
|
|
|
Commit: "",
|
|
|
|
BuildDate: "",
|
|
|
|
Debug: false,
|
|
|
|
BuildSource: "",
|
2020-10-03 06:54:55 +02:00
|
|
|
UserConfig: GetDefaultConfig(),
|
2021-10-23 03:45:02 +02:00
|
|
|
AppState: &AppState{},
|
2020-09-29 11:10:57 +02:00
|
|
|
}
|
|
|
|
_ = yaml.Unmarshal([]byte{}, appConfig.AppState)
|
|
|
|
return appConfig
|
|
|
|
}
|