(scopes string)
| 430 | } |
| 431 | |
| 432 | func displayScopes(scopes string) string { |
| 433 | if scopes == "" { |
| 434 | return "none" |
| 435 | } |
| 436 | list := strings.Split(scopes, ",") |
| 437 | for i, s := range list { |
| 438 | list[i] = fmt.Sprintf("'%s'", strings.TrimSpace(s)) |
| 439 | } |
| 440 | return strings.Join(list, ", ") |
| 441 | } |
| 442 | |
| 443 | // TODO: this matches a token prefix itself. It could ask |
| 444 | // gh.AuthConfig.ActiveTokenType instead. |