- commit
- 2b52c37
- parent
- 4ba3274
- author
- Eric Bower
- date
- 2023-03-13 16:26:20 +0000 UTC
bug(aliases): add support for comma delimited string
1 files changed,
+5,
-0
1@@ -112,6 +112,11 @@ func toAliases(obj interface{}) ([]string, error) {
2 for _, alias := range raw {
3 arr = append(arr, alias.(string))
4 }
5+ case string:
6+ aliases := strings.Split(raw, " ")
7+ for _, alias := range aliases {
8+ arr = append(arr, strings.TrimSpace(alias))
9+ }
10 default:
11 return arr, fmt.Errorf("unsupported type for `aliases` variable: %T", raw)
12 }