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

Method Execute

cf/commands/ssh_code.go:69–77  ·  view source on GitHub ↗
(c flags.FlagContext)

Source from the content-addressed store, hash-verified

67}
68
69func (cmd *OneTimeSSHCode) Execute(c flags.FlagContext) error {
70 code, err := cmd.Get()
71 if err != nil {
72 return err
73 }
74
75 cmd.ui.Say(code)
76 return nil
77}
78
79func (cmd *OneTimeSSHCode) Get() (string, error) {
80 refresher := coreconfig.APIConfigRefresher{

Callers

nothing calls this directly

Calls 2

GetMethod · 0.95
SayMethod · 0.65

Tested by

no test coverage detected