MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / NewSpecReader

Function NewSpecReader

cli/internal/specs/v0/spec_reader.go:294–305  ·  view source on GitHub ↗
(paths []string)

Source from the content-addressed store, hash-verified

292}
293
294func NewSpecReader(paths []string) (*SpecReader, error) {
295 reader := newSpecReader()
296 if err := reader.initialize(paths); err != nil {
297 return nil, err
298 }
299
300 if err := reader.validate(); err != nil {
301 return nil, err
302 }
303
304 return reader, nil
305}
306
307// NewSpecReaderWithoutValidation reads and parses specs without enforcing that
308// every source has a destination (or that any destination exists at all). The

Callers 3

TestLoadSpecsFunction · 0.85

Calls 3

newSpecReaderFunction · 0.85
initializeMethod · 0.80
validateMethod · 0.45

Tested by 3

TestLoadSpecsFunction · 0.68