(tokType string, domain string, force bool)
| 277 | } |
| 278 | |
| 279 | func getAccessToken(tokType string, domain string, force bool) (string, string, error) { |
| 280 | credential, filePath, err := getAccessCredential(tokType, domain, force) |
| 281 | if err != nil { |
| 282 | return "", "", err |
| 283 | } |
| 284 | return credential.AccessToken, filePath, nil |
| 285 | } |
| 286 | |
| 287 | func loginCommand(tokType string) string { |
| 288 | switch tokType { |