mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 18:00:42 +02:00
13 lines
277 B
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
|
|
}
|