Skip to content

Commit

Permalink
fix: remove stdout when start
Browse files Browse the repository at this point in the history
  • Loading branch information
siyul-park committed Nov 16, 2024
1 parent ef173c2 commit 0b41494
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/pkg/cli/start.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"io"
"os"
"os/signal"
"syscall"
Expand Down Expand Up @@ -68,6 +69,9 @@ func runStartCommand(config StartConfig) func(cmd *cobra.Command, args []string)
return err
}

out := cmd.OutOrStdout()
cmd.SetOut(io.Discard)

if err := applySpecs(cmd); err != nil {
return err
}
Expand All @@ -78,6 +82,8 @@ func runStartCommand(config StartConfig) func(cmd *cobra.Command, args []string)
return err
}

cmd.SetOut(out)

h := config.Hook
if h == nil {
h = hook.New()
Expand Down

0 comments on commit 0b41494

Please sign in to comment.