MCPcopy Index your code
hub / github.com/coder/coder / joinScopes

Function joinScopes

cli/tokens.go:191–198  ·  view source on GitHub ↗
(scopes []codersdk.APIKeyScope)

Source from the content-addressed store, hash-verified

189}
190
191func joinScopes(scopes []codersdk.APIKeyScope) string {
192 if len(scopes) == 0 {
193 return ""
194 }
195 vals := slice.ToStrings(scopes)
196 slices.Sort(vals)
197 return strings.Join(vals, ", ")
198}
199
200func joinAllowList(entries []codersdk.APIAllowListTarget) string {
201 if len(entries) == 0 {

Callers 1

tokenListRowFromKeyFunction · 0.85

Calls 1

ToStringsFunction · 0.92

Tested by

no test coverage detected