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

Method validate

internal/devconfig/configfile/packages.go:262–270  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260)
261
262func (p PatchMode) validate() error {
263 switch p {
264 case PatchAuto, PatchAlways, PatchNever:
265 return nil
266 default:
267 return fmt.Errorf("invalid patch mode %q (must be %s, %s or %s)",
268 p, PatchAuto, PatchAlways, PatchNever)
269 }
270}
271
272type Package struct {
273 Name string

Callers 2

SetPatchMethod · 0.45
UnmarshalJSONMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected