1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-04 10:34:55 +02:00

Rename appconfig to config

This commit is contained in:
Jasper Mendiola 2020-07-10 16:46:42 +08:00 committed by Jesse Duffield
parent cb0bdd89c0
commit 0f5a073d57

View File

@ -7,7 +7,6 @@ import (
"github.com/jesseduffield/lazygit/pkg/i18n"
"github.com/sirupsen/logrus"
"github.com/spf13/viper"
appconfig "github.com/jesseduffield/lazygit/pkg/config"
yaml "gopkg.in/yaml.v2"
)
@ -22,7 +21,7 @@ func NewDummyOSCommand() *OSCommand {
func NewDummyAppConfig() *config.AppConfig {
userConfig := viper.New()
userConfig.SetConfigType("yaml")
if err := appconfig.LoadDefaults(userConfig, appconfig.GetDefaultConfig()); err != nil {
if err := config.LoadDefaults(userConfig, config.GetDefaultConfig()); err != nil {
panic(err)
}
appConfig := &config.AppConfig{