MCPcopy Create free account
hub / github.com/auth0/auth0-cli / commaSeparatedStringToSlice

Function commaSeparatedStringToSlice

internal/cli/apps.go:1081–1087  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

1079}
1080
1081func commaSeparatedStringToSlice(s string) []string {
1082 joined := strings.Join(strings.Fields(s), "")
1083 if len(joined) > 0 {
1084 return strings.Split(joined, ",")
1085 }
1086 return []string{}
1087}
1088
1089func stringSliceToCommaSeparatedString(s []string) string {
1090 return strings.Join(s, ", ")

Callers 2

askManyFlagFunction · 0.85

Calls

no outgoing calls

Tested by 1