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

Method Execute

command/v7/api_command.go:34–44  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

32}
33
34func (cmd *APICommand) Execute(args []string) error {
35 if cmd.Unset {
36 return cmd.clearTarget()
37 }
38
39 if cmd.OptionalArgs.URL != "" {
40 return cmd.setAPI()
41 }
42
43 return cmd.viewTarget()
44}
45
46func (cmd *APICommand) clearTarget() error {
47 cmd.UI.DisplayTextWithFlavor("Unsetting API endpoint...")

Callers

nothing calls this directly

Calls 3

clearTargetMethod · 0.95
setAPIMethod · 0.95
viewTargetMethod · 0.95

Tested by

no test coverage detected