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

Function NewLocator

util/manifestparser/locator.go:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10}
11
12func NewLocator() *Locator {
13 return &Locator{
14 FilesToCheckFor: []string{
15 "manifest.yml",
16 "manifest.yaml",
17 },
18 }
19}
20
21func (loc Locator) Path(filepathOrDirectory string) (string, bool, error) {
22 info, err := os.Stat(filepathOrDirectory)

Callers 4

SetupMethod · 0.92
SetupMethod · 0.92
UnmarshalFlagMethod · 0.92
locator_test.goFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected