Skip to content

Commit

Permalink
fix(cmd): update command output method to SetOut for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
tgragnato committed Feb 24, 2025
1 parent f085c50 commit d2bf56a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func testExecute(subcmd *cobra.Command, args ...string) (output string, err erro
outputBuffer = new(bytes.Buffer)
command = &cobra.Command{}
)
command.SetOutput(outputBuffer)
command.SetOut(outputBuffer)
command.SetErr(outputBuffer)
command.SetArgs(args)
command.AddCommand(subcmd)
Expand Down

0 comments on commit d2bf56a

Please sign in to comment.