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

Method Complete

command/flag/path.go:126–128  ·  view source on GitHub ↗
(prefix string)

Source from the content-addressed store, hash-verified

124type PathWithExistenceCheckOrURL string
125
126func (PathWithExistenceCheckOrURL) Complete(prefix string) []flags.Completion {
127 return completeWithTilde(prefix)
128}
129
130func (p *PathWithExistenceCheckOrURL) UnmarshalFlag(path string) error {
131 if !strings.HasPrefix(path, "http://") && !strings.HasPrefix(path, "https://") {

Callers

nothing calls this directly

Calls 1

completeWithTildeFunction · 0.85

Tested by

no test coverage detected