Skip to content

Commit

Permalink
Chore: writeto dev
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Jul 29, 2024
1 parent b93e77e commit ef214cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/start/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ func handleStdIO(c pty.Console) error {
if runtime.GOOS == "windows" && c.StdErr() != nil {
go func() { _, _ = io.Copy(colorable.NewColorableStderr(), c.StdErr()) }()
}
handleStdOut(c)
return nil
}

func handleStdOut(c pty.Console) {
_, ok := c.StdErr().(io.WriterTo)
if !ok {
fmt.Println("StdErr is not a WriterTo")
}
_, _ = io.Copy(colorable.NewColorableStdout(), c.StdOut())
return nil
}

const (
Expand Down

0 comments on commit ef214cc

Please sign in to comment.