helmfile/pkg/app/validate_config.go

13 lines
277 B
Go

package app
import "errors"
// ValidateConfig validates the given Helmfile config.
func ValidateConfig(conf ApplyConfigProvider) error {
if conf.NoColor() && conf.Color() {
return errors.New("--color and --no-color cannot be specified at the same time")
}
return nil
}