diff --git a/internal/config/config.go b/internal/config/config.go index aa8f781..9c27b93 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -37,6 +37,18 @@ type ALRConfig struct { pathsOnce sync.Once } +var defaultConfig = &types.Config{ + RootCmd: "sudo", + PagerStyle: "native", + IgnorePkgUpdates: []string{}, + Repos: []types.Repo{ + { + Name: "default", + URL: "https://gitea.plemya-x.ru/xpamych/xpamych-alr-repo.git", + }, + }, +} + func New() *ALRConfig { return &ALRConfig{} } diff --git a/internal/config/config_legacy.go b/internal/config/config_legacy.go index c1d30aa..46fe18c 100644 --- a/internal/config/config_legacy.go +++ b/internal/config/config_legacy.go @@ -25,18 +25,6 @@ import ( "plemya-x.ru/alr/internal/types" ) -var defaultConfig = &types.Config{ - RootCmd: "sudo", - PagerStyle: "native", - IgnorePkgUpdates: []string{}, - Repos: []types.Repo{ - { - Name: "default", - URL: "https://gitea.plemya-x.ru/xpamych/xpamych-alr-repo.git", - }, - }, -} - // Config returns a ALR configuration struct. // The first time it's called, it'll load the config from a file. // Subsequent calls will just return the same value.