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

Method UnmarshalFlag

command/flag/path.go:43–56  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

41}
42
43func (p *PathWithExistenceCheck) UnmarshalFlag(path string) error {
44 _, err := checkIfFileExists(path)
45 if err != nil {
46 return err
47 }
48
49 path, err = filepath.Abs(path)
50 if err != nil {
51 return err
52 }
53
54 *p = PathWithExistenceCheck(path)
55 return nil
56}
57
58type ManifestPathWithExistenceCheck string
59

Callers

nothing calls this directly

Calls 2

checkIfFileExistsFunction · 0.85
PathWithExistenceCheckTypeAlias · 0.85

Tested by

no test coverage detected