mirror of
https://github.com/grdl/git-get.git
synced 2026-02-08 05:14:19 +00:00
Refactor config provider using viper
This commit is contained in:
@@ -48,6 +48,9 @@ func TestURLParse(t *testing.T) {
|
||||
{"file://local/grdl/git-get", "local/grdl/git-get"},
|
||||
}
|
||||
|
||||
// We need to init config first so the default values are correctly loaded
|
||||
InitConfig()
|
||||
|
||||
for _, test := range tests {
|
||||
url, err := ParseURL(test.in)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user