INNER CODE UNIT · Go
init
helm-unittest/helm-unittest · cmd/helm-unittest/helm_unittest.go:144
func init() {
InitPluginFlags(cmd)
}
func InitPluginFlags(cmd *cobra.Command) {
cmd.PersistentFlags().StringVar(
&testConfig.colored, "color", "false",
"enforce printing colored output even stdout is not a tty. Set to auto, never or false to disable color, always or true to enable color",
)
colorFlag := cmd.PersistentFlags().Lookup("color")
if colorFlag != nil {
colorFlag.NoOptDefVal = "true"
}
cmd.PersistentFlags().BoolVar(
&testConfig.useStrict, "strict", false,
"strict parse the testsuites",
)