INNER CODE UNIT · Go
main
helmfile/helmfile · main.go:16
func main() {
var sig os.Signal
sigs := make(chan os.Signal, 1)
errChan := make(chan error, 1)
signal.Notify(sigs, syscall.SIGINT, syscall.SIGTERM)
go func() {
globalConfig := new(config.GlobalOptions)
rootCmd, err := cmd.NewRootCmd(globalConfig)
if err != nil {
errChan <- err
return
}
errChan <- rootCmd.Execute()
}()