msg: add new package for CLI output.

This commit is contained in:
2025-11-20 18:20:00 -08:00
parent bd5ec3f425
commit eac59fd5a6
3 changed files with 132 additions and 0 deletions

View File

@@ -336,6 +336,10 @@ type DummyWriteCloser struct {
w io.Writer
}
func WithCloser(w io.Writer) io.WriteCloser {
return &DummyWriteCloser{w: w}
}
func (dwc *DummyWriteCloser) Write(p []byte) (int, error) {
return dwc.w.Write(p)
}