MCPcopy Index your code
hub / github.com/jetify-com/devbox / parseConfig

Function parseConfig

internal/devconfig/configfile/ast.go:40–46  ·  view source on GitHub ↗

parseConfig parses the bytes of a devbox.json and returns a syntax tree.

(b []byte)

Source from the content-addressed store, hash-verified

38
39// parseConfig parses the bytes of a devbox.json and returns a syntax tree.
40func parseConfig(b []byte) (*configAST, error) {
41 root, err := hujson.Parse(b)
42 if err != nil {
43 return nil, err
44 }
45 return &configAST{root: root}, nil
46}
47
48// packagesField gets the "packages" field, initializing it if necessary. The
49// member value will either be an array of strings or an object. When it's an

Callers 1

LoadBytesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected