INNER CODE UNIT · Go

runCommand

kitops-ml/kitops · pkg/cmd/diff/cmd.go:84

func runCommand(opts *diffOptions) func(cmd *cobra.Command, args []string) error {
	return func(cmd *cobra.Command, args []string) error {
		if err := opts.complete(cmd.Context(), args); err != nil {
			return output.Fatalf("Invalid arguments: %s", err)
		}

		var (
			diffA, diffB *diffInfo
			errA, errB   error
		)
		var wg sync.WaitGroup
		wg.Add(2)

		go func() {
			defer wg.Done()
			diffA, errA = getManifest(cmd.Context(), args[0], opts.refA, opts)
		}()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…