mirror of
https://github.com/turbot/steampipe.git
synced 2026-04-10 13:00:07 -04:00
Update workspace profile parsing to load options blocks. Include these options values in viper with correct precedence. Closes #2579
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user