Skip to content

Commit

Permalink
fix(cmd): set defaults for command output
Browse files Browse the repository at this point in the history
  • Loading branch information
rootulp committed Dec 2, 2024
1 parent 5463787 commit a218f0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/celestia-appd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func NewRootCmd() *cobra.Command {
rootCommand := &cobra.Command{
Use: "celestia-appd",
PersistentPreRunE: func(command *cobra.Command, _ []string) error {
command.SetOut(command.OutOrStdout())
command.SetErr(command.ErrOrStderr())

clientContext, err := client.ReadPersistentCommandFlags(initClientContext, command.Flags())
if err != nil {
return err
Expand Down

0 comments on commit a218f0d

Please sign in to comment.