(c flags.FlagContext)
| 51 | } |
| 52 | |
| 53 | func (cmd *OAuthToken) Execute(c flags.FlagContext) error { |
| 54 | token, err := cmd.authRepo.RefreshAuthToken() |
| 55 | if err != nil { |
| 56 | return err |
| 57 | } |
| 58 | |
| 59 | if cmd.pluginCall { |
| 60 | cmd.pluginModel.Token = token |
| 61 | } else { |
| 62 | cmd.ui.Say(token) |
| 63 | } |
| 64 | return nil |
| 65 | } |
nothing calls this directly
no test coverage detected