MCPcopy Create free account
hub / github.com/SwishHQ/spread / validateConfig

Function validateConfig

cli/bundle_cli.go:71–76  ·  view source on GitHub ↗
(config BundleConfig)

Source from the content-addressed store, hash-verified

69}
70
71func validateConfig(config BundleConfig) error {
72 if config.TargetVersion == "" || config.AppName == "" || config.Environment == "" {
73 return fmt.Errorf("missing required fields: target version, app name, or environment")
74 }
75 return nil
76}
77
78func prepareBuildDirectory(projectDir string) error {
79 buildPath := projectDir + "build"

Callers 1

PushBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected