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

Function DefaultConfig

internal/devconfig/config.go:65–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63`
64
65func DefaultConfig() *Config {
66 schemaVersion := lo.Ternary(build.IsDev, "main", build.Version)
67
68 cfg, err := loadBytes([]byte(fmt.Sprintf(defaultConfig, schemaVersion, defaultInitHook)))
69 if err != nil {
70 panic("default devbox.json is invalid: " + err.Error())
71 }
72 return cfg
73}
74
75func IsDefault(path string) bool {
76 cfg, err := readFromFile(path)

Callers 4

DryRunFunction · 0.92
TestDefaultFunction · 0.85
InitFunction · 0.85
IsDefaultFunction · 0.85

Calls 2

loadBytesFunction · 0.85
ErrorMethod · 0.45

Tested by 1

TestDefaultFunction · 0.68