Skip to content

Commit

Permalink
fix(cmd): set defaults for command output (#4071)
Browse files Browse the repository at this point in the history
Closes #3823
Motivation
celestiaorg/cosmos-sdk#420 (comment)

## Testing

```bash
make build
./build/celestia-appd status | jq .
``` 
works
  • Loading branch information
rootulp authored Dec 3, 2024
1 parent a1c4cf7 commit 615f1dc
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 615f1dc

Please sign in to comment.