INNER CODE UNIT · Go

main

werf/nelm · cmd/nelm/main.go:43

func main() {
	if featgate.FeatGatePeriodicStackTraces.Enabled() {
		periodicStackTraces()
	}

	ctx := logboek.NewContext(context.Background(), logboek.DefaultLogger())

	cli.FlagEnvVarsPrefix = caps.ToScreamingSnake(common.Brand) + "_"
	afterAllCommandsBuiltFuncs := make(map[*cobra.Command]func(cmd *cobra.Command) error)

	// Needed for embedding original Helm 3 commands.
	var err error

	helmRootCmd, err = helmcmd.NewRootCmd(os.Stdout, os.Args[1:], helmcmd.SetupLogging)
	if err != nil {
		abort(ctx, fmt.Errorf("new helm root command: %w", err), 1)
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…