6
0
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:
Grzegorz Dlugoszewski
2020-06-04 11:38:01 +02:00
parent 205eecc073
commit f2d8496136
7 changed files with 142 additions and 130 deletions

View File

@@ -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 {