mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-23 00:39:13 +02:00
Rename appconfig to config
This commit is contained in:
committed by
Jesse Duffield
parent
cb0bdd89c0
commit
0f5a073d57
@ -7,7 +7,6 @@ import (
|
|||||||
"github.com/jesseduffield/lazygit/pkg/i18n"
|
"github.com/jesseduffield/lazygit/pkg/i18n"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
appconfig "github.com/jesseduffield/lazygit/pkg/config"
|
|
||||||
yaml "gopkg.in/yaml.v2"
|
yaml "gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -22,7 +21,7 @@ func NewDummyOSCommand() *OSCommand {
|
|||||||
func NewDummyAppConfig() *config.AppConfig {
|
func NewDummyAppConfig() *config.AppConfig {
|
||||||
userConfig := viper.New()
|
userConfig := viper.New()
|
||||||
userConfig.SetConfigType("yaml")
|
userConfig.SetConfigType("yaml")
|
||||||
if err := appconfig.LoadDefaults(userConfig, appconfig.GetDefaultConfig()); err != nil {
|
if err := config.LoadDefaults(userConfig, config.GetDefaultConfig()); err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
appConfig := &config.AppConfig{
|
appConfig := &config.AppConfig{
|
||||||
|
Reference in New Issue
Block a user