Skip to content

Commit

Permalink
fix(cmd): set defaults for command output (backport #4071) (#4077)
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

<hr>This is an automatic backport of pull request #4071 done by
[Mergify](https://mergify.com).

Co-authored-by: Rootul P <[email protected]>
  • Loading branch information
mergify[bot] and rootulp authored Dec 4, 2024
1 parent e61f230 commit b9d48a6
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 b9d48a6

Please sign in to comment.