diff --git a/cmd/cmd.go b/cmd/cmd.go index 574b9b3..d9bd9b1 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -160,7 +160,9 @@ func initializedRootFromArgs(stdout, stderr io.Writer, args []string) (*cobra.Co rootCmd.ParseFlags(args) rootCmd.AddCommand(newExtCmd()) - addExtensions(rootCmd) + if err := addExtensions(rootCmd); err != nil { + return nil, nil, fmt.Errorf("failed to register extensions: %w", err) + } if isInRepoContext() { runCmd, err := newRun(uii, ctxProvider)