MCPcopy
hub / github.com/urfave/cli / Files

Function Files

value_source.go:165–173  ·  view source on GitHub ↗

Files is a helper function to encapsulate a number of fileValueSource together as a ValueSourceChain

(paths ...string)

Source from the content-addressed store, hash-verified

163// Files is a helper function to encapsulate a number of
164// fileValueSource together as a ValueSourceChain
165func Files(paths ...string) ValueSourceChain {
166 vsc := ValueSourceChain{Chain: []ValueSource{}}
167
168 for _, path := range paths {
169 vsc.Chain = append(vsc.Chain, File(path))
170 }
171
172 return vsc
173}
174
175type mapSource struct {
176 name string

Callers 1

TestFilePathsFunction · 0.85

Calls 1

FileFunction · 0.85

Tested by 1

TestFilePathsFunction · 0.68