mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-20 21:32:59 +02:00
Make --color and --no-color exclusive
Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package app
|
||||
|
||||
import "errors"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user