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

Function joinAllowList

cli/tokens.go:200–210  ·  view source on GitHub ↗
(entries []codersdk.APIAllowListTarget)

Source from the content-addressed store, hash-verified

198}
199
200func joinAllowList(entries []codersdk.APIAllowListTarget) string {
201 if len(entries) == 0 {
202 return ""
203 }
204 vals := make([]string, len(entries))
205 for i, entry := range entries {
206 vals[i] = entry.String()
207 }
208 slices.Sort(vals)
209 return strings.Join(vals, ", ")
210}
211
212func (r *RootCmd) listTokens() *serpent.Command {
213 // we only display the 'owner' column if the --all argument is passed in

Callers 1

tokenListRowFromKeyFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected