MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Execute

Method Execute

cf/commands/oauth_token.go:53–65  ·  view source on GitHub ↗
(c flags.FlagContext)

Source from the content-addressed store, hash-verified

51}
52
53func (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}

Callers

nothing calls this directly

Calls 2

RefreshAuthTokenMethod · 0.65
SayMethod · 0.65

Tested by

no test coverage detected