INNER CODE UNIT · Go
InitPluginFlags
helm-unittest/helm-unittest · cmd/helm-unittest/helm_unittest.go:148
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",
)
cmd.PersistentFlags().StringArrayVarP(
&testConfig.testFiles, "file", "f", []string{},
"glob paths of test files location, default to "+defaultFilePattern,