fix(summer): send a delegate's stderr to the root's error writer through bonfire.ErrWriter (IN-13, quick-261028-rqd)

This commit is contained in:
Jakub Zych
2026-10-28 20:50:39 +01:00
parent f3f87f3cc4
commit 4914cade5a
8 changed files with 145 additions and 29 deletions

View File

@@ -44,9 +44,12 @@ type Progress interface {
}
type console struct {
in io.Reader
out io.Writer
err io.Writer
in io.Reader
out io.Writer
err io.Writer
// errStream is the stream the root's error block goes to, when the
// console belongs to a root (ErrWriter); nil means err.
errStream io.Writer
lookup func(string) string
// tty is true when stdout is a terminal; it picks animated widgets
// and boxed tables.