MCPcopy
hub / github.com/helm/helm / ParseFile

Function ParseFile

pkg/ignore/rules.go:54–61  ·  view source on GitHub ↗

ParseFile parses a helmignore file and returns the *Rules.

(file string)

Source from the content-addressed store, hash-verified

52
53// ParseFile parses a helmignore file and returns the *Rules.
54func ParseFile(file string) (*Rules, error) {
55 f, err := os.Open(file)
56 if err != nil {
57 return nil, err
58 }
59 defer f.Close()
60 return Parse(f)
61}
62
63// Parse parses a rules file
64func Parse(file io.Reader) (*Rules, error) {

Callers 3

LoadDirFunction · 0.92
LoadDirFunction · 0.92
TestParseFileFunction · 0.70

Calls 2

CloseMethod · 0.80
ParseFunction · 0.70

Tested by 1

TestParseFileFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…