Update workspace profile parsing to load options blocks. Include these options values in viper with correct precedence. Closes #2579

This commit is contained in:
kaidaguerre
2022-10-24 13:58:50 +01:00
committed by GitHub
parent 2309abb7fd
commit 0e27f38202
15 changed files with 149 additions and 121 deletions

View File

@@ -2,19 +2,6 @@ package utils
import "strings"
// TODO: investigate turbot/go-kit/helpers
func StringSliceDistinct(slice []string) []string {
var res []string
occurenceMap := make(map[string]struct{})
for _, item := range slice {
occurenceMap[item] = struct{}{}
}
for item := range occurenceMap {
res = append(res, item)
}
return res
}
// UnquoteStringArray removes quote marks from elements of string array
func UnquoteStringArray(stringArray []string) []string {
res := make([]string, len(stringArray))