INNER CODE UNIT · Go

afterAllCommandsBuiltFuncs

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

	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)
	}

	rootCmd := NewRootCommand(ctx, afterAllCommandsBuiltFuncs)

	for cmd, fn := range afterAllCommandsBuiltFuncs {
		if err := fn(cmd); err != nil {
			abort(ctx, err, 1)
		}
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…