(entries []codersdk.APIAllowListTarget)
| 198 | } |
| 199 | |
| 200 | func 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 | |
| 212 | func (r *RootCmd) listTokens() *serpent.Command { |
| 213 | // we only display the 'owner' column if the --all argument is passed in |
no test coverage detected