INNER CODE UNIT · Go
RunPlugin
helm-unittest/helm-unittest · cmd/helm-unittest/helm_unittest.go:78
func RunPlugin(cmd *cobra.Command, chartPaths []string) {
var colored *bool
if cmd.PersistentFlags().Changed("color") {
if testConfig.colored == "true" || testConfig.colored == "always" {
colored = new(bool)
*colored = true
}
if testConfig.colored == "false" || testConfig.colored == "never" {
colored = new(bool)
*colored = false
}
}
renderPath := ""
if testConfig.debugLogging {
renderPath = ".debug"
log.SetLevel(log.DebugLevel)
}