MCPcopy Create free account
hub / github.com/AdRoll/baker / processFileOrList

Method processFileOrList

input/list.go:381–391  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

379}
380
381func (s *List) processFileOrList(f string) {
382 if f[0] == '@' {
383 // List file
384 if err := s.processList(f[1:]); err != nil {
385 s.setFatalErr(fmt.Errorf("error parsing list file %q: %v", f[1:], err))
386 }
387 } else {
388 // Regular file, just enqueue for processing
389 s.ci.ProcessFile(f)
390 }
391}
392
393func (s *List) Run(inch chan<- *baker.Data) error {
394 s.ci.SetOutputChannel(inch)

Callers 2

processListFileMethod · 0.95
RunMethod · 0.95

Calls 3

processListMethod · 0.95
setFatalErrMethod · 0.95
ProcessFileMethod · 0.80

Tested by

no test coverage detected