(path string)
| 41 | } |
| 42 | |
| 43 | func (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 | |
| 58 | type ManifestPathWithExistenceCheck string |
| 59 |
nothing calls this directly
no test coverage detected