MCPcopy
hub / github.com/cloudfoundry/cli / processURL

Method processURL

command/v7/api_command.go:77–82  ·  view source on GitHub ↗
(apiURL string)

Source from the content-addressed store, hash-verified

75}
76
77func (cmd *APICommand) processURL(apiURL string) string {
78 if !strings.HasPrefix(apiURL, "http") {
79 return fmt.Sprintf("https://%s", apiURL)
80 }
81 return apiURL
82}
83
84func (cmd *APICommand) viewTarget() error {
85 if cmd.Config.Target() == "" {

Callers 1

setAPIMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected