(format string, a ...interface{})
| 20 | return os.Getenv("HELM_DEBUG") == envTrue |
| 21 | } |
| 22 | func debugPrint(format string, a ...interface{}) { |
| 23 | if isDebug() { |
| 24 | fmt.Printf(format+"\n", a...) |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func outputWithRichError(cmd *exec.Cmd) ([]byte, error) { |
| 29 | debugPrint("Executing %s", strings.Join(cmd.Args, " ")) |