INNER CODE UNIT · Go
main
helm-unittest/helm-unittest · cmd/helm-unittest/helm_unittest.go:137
func main() {
if err := cmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}
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 {