Documentation
¶
Overview ¶
Package termio centralizes terminal and log-file output helpers used by the eval_mcp_surfaces CLI so commands can write progress to a tee'd destination (stdout plus an optional log file) with a consistent format.
The package owns the process-wide Output sink, the Configure hook that installs the sink at startup, and the Printf/Print/LogPrintf helpers that route through it. Tests can swap the sink with SetOutputForTest to observe output without touching the real filesystem.
Index ¶
- func Configure(logPath string, printOutput bool) (func() error, error)
- func LogPrintf(format string, args ...any)
- func Print(content string)
- func Printf(format string, args ...any)
- func SetOutputForTest(out Output) func()
- func ShouldConfigure(terminalLog string, printOutput, checkDocs bool, ...) bool
- type Output
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Print ¶
func Print(content string)
Print writes command output to the configured terminal sink.
func SetOutputForTest ¶
func SetOutputForTest(out Output) func()
SetOutputForTest replaces the package output sink and returns a restore function.
Types ¶
Click to show internal directories.
Click to hide internal directories.