()
| 63 | ` |
| 64 | |
| 65 | func 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 | |
| 75 | func IsDefault(path string) bool { |
| 76 | cfg, err := readFromFile(path) |