(scopes string)
| 348 | } |
| 349 | |
| 350 | func displayScopes(scopes string) string { |
| 351 | if scopes == "" { |
| 352 | return "none" |
| 353 | } |
| 354 | list := strings.Split(scopes, ",") |
| 355 | for i, s := range list { |
| 356 | list[i] = fmt.Sprintf("'%s'", strings.TrimSpace(s)) |
| 357 | } |
| 358 | return strings.Join(list, ", ") |
| 359 | } |
| 360 | |
| 361 | // TODO: this matches a token prefix itself. It could ask |
| 362 | // gh.AuthConfig.ActiveTokenType instead. |