Skip to content

Commit 48e8ba4

Browse files
committed
chore: cli redirect to stdout
1 parent b5732b5 commit 48e8ba4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/kid/cmd/root.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
5656
Use: "kid",
5757
Short: "KiChain App",
5858
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
59+
cmd.SetOut(cmd.OutOrStdout())
60+
cmd.SetErr(cmd.ErrOrStderr())
61+
5962
initClientCtx, err := client.ReadPersistentCommandFlags(initClientCtx, cmd.Flags())
6063
if err != nil {
6164
return err

0 commit comments

Comments
 (0)