Documentation
¶
Index ¶
- func Bold(msg string)
- func Dim(msg string)
- func Error(msg string)
- func Fatal(err error)
- func GreenText(s string) string
- func Info(msg string)
- func IsTerminal() bool
- func JSON(v any) error
- func PrefixWriter(w io.Writer, prefix string) io.Writer
- func PrintBanner(version string)
- func RedText(s string) string
- func Spinner(label string, fn func() error) error
- func Success(msg string)
- func Warn(msg string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTerminal ¶
func IsTerminal() bool
IsTerminal reports whether stdout is connected to an interactive terminal. Returns false in CI pipelines, MCP mode (stdin/stdout = JSON-RPC pipe), or when output is redirected/piped.
func PrefixWriter ¶
PrefixWriter returns an io.Writer that prepends prefix to every output line. Safe to use with docker build / docker pull output (handles \r progress lines).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.