Files
helmfile/pkg/app/validate_config.go
T
yxxhero ac23def893 add Go lint
Signed-off-by: yxxhero <aiopsclub@163.com>
2022-07-16 20:21:11 +08:00

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
}