Skip to content

Commit

Permalink
feat: remember to add error
Browse files Browse the repository at this point in the history
Signed-off-by: Kasper J. Hermansen <[email protected]>
  • Loading branch information
kjuulh committed Jan 25, 2024
1 parent 4a7cd51 commit befe228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit befe228

Please sign in to comment.