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

Method Complete

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

Source from the content-addressed store, hash-verified

177type PathWithBool string
178
179func (PathWithBool) Complete(prefix string) []flags.Completion {
180 return append(
181 completions([]string{"true", "false"}, prefix, false),
182 completeWithTilde(prefix)...,
183 )
184}
185
186func findMatches(pattern string, formatMatch func(string) string) []flags.Completion {
187 paths, err := filepath.Glob(pattern)

Callers

nothing calls this directly

Calls 2

completionsFunction · 0.85
completeWithTildeFunction · 0.85

Tested by

no test coverage detected