MCPcopy Create free account
hub / github.com/jetify-com/devbox / IsDefault

Function IsDefault

internal/devconfig/config.go:75–81  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

73}
74
75func IsDefault(path string) bool {
76 cfg, err := readFromFile(path)
77 if err != nil {
78 return false
79 }
80 return cfg.Root.Equals(&DefaultConfig().Root)
81}
82
83// Open loads a Devbox config from a file or project directory. If path is a
84// directory, Open looks for a well-known config name (such as devbox.json)

Callers 1

isModifiedConfigFunction · 0.92

Calls 3

readFromFileFunction · 0.85
DefaultConfigFunction · 0.85
EqualsMethod · 0.45

Tested by

no test coverage detected