(tokType string)
| 285 | } |
| 286 | |
| 287 | func loginCommand(tokType string) string { |
| 288 | switch tokType { |
| 289 | case tokenTeamAccess: |
| 290 | return "dbxcli login team-access" |
| 291 | case tokenTeamManage: |
| 292 | return "dbxcli login team-manage" |
| 293 | default: |
| 294 | return "dbxcli login" |
| 295 | } |
| 296 | } |
| 297 | |
| 298 | func missingAccessTokenError(tokType string) error { |
| 299 | return authRequiredErrorfWithDetails("no saved Dropbox credentials; run %q first or set %s", authTokenDetails(tokType), loginCommand(tokType), envAccessToken) |
no outgoing calls