mirror of
https://github.com/helmfile/helmfile.git
synced 2026-09-30 20:58:51 +02:00
This is an attempt to log helm exec output as the helm exec command is running. It only prints if the --debug flag is set. Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
14 lines
296 B
Go
14 lines
296 B
Go
package helmexec
|
|
|
|
import "math/rand"
|
|
|
|
var executionIDComponents = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
|
|
|
func newExecutionID() string {
|
|
b := make([]rune, 5)
|
|
for i := range b {
|
|
b[i] = executionIDComponents[rand.Intn(len(executionIDComponents))]
|
|
}
|
|
return string(b)
|
|
}
|