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

Method clearTarget

command/v7/api_command.go:46–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func (cmd *APICommand) clearTarget() error {
47 cmd.UI.DisplayTextWithFlavor("Unsetting API endpoint...")
48 cmd.Actor.ClearTarget()
49 cmd.UI.DisplayOK()
50 return nil
51}
52
53func (cmd *APICommand) setAPI() error {
54 cmd.UI.DisplayTextWithFlavor("Setting API endpoint to {{.Endpoint}}...", map[string]interface{}{

Callers 1

ExecuteMethod · 0.95

Calls 3

DisplayTextWithFlavorMethod · 0.65
ClearTargetMethod · 0.65
DisplayOKMethod · 0.65

Tested by

no test coverage detected