Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IOStreams ¶
IOStreams provides a set of input/output streams for terminal interactions. It encapsulates standard input, output, error output, and a flag indicating whether color output is enabled.
func NewIOStreams ¶
NewIOStreams creates and returns a new IOStreams instance with the provided input, output, error output streams, and a flag indicating whether color output is enabled.
type PrefixedWriter ¶ added in v0.4.0
type PrefixedWriter struct {
// contains filtered or unexported fields
}
PrefixedWriter wraps an io.Writer and prepends a prefix to each line of output. It is safe for concurrent use. When multiple actions run in parallel, each action gets a PrefixedWriter with its name, so output lines are clearly attributed.
func NewPrefixedWriter ¶ added in v0.4.0
func NewPrefixedWriter(out io.Writer, name string) *PrefixedWriter
NewPrefixedWriter creates a writer that prefixes each line with the given string. The prefix is formatted as "[name] " and prepended to the start of each line.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package format provides human-readable formatting utilities for bytes and durations.
|
Package format provides human-readable formatting utilities for bytes and durations. |
|
Package input provides interactive user input functionality for the terminal.
|
Package input provides interactive user input functionality for the terminal. |
|
Package kvx provides integration with the kvx data viewer library for scafctl.
|
Package kvx provides integration with the kvx data viewer library for scafctl. |
|
Package output provides output formatting utilities for scafctl commands.
|
Package output provides output formatting utilities for scafctl commands. |
|
Package writer provides a centralized CLI output writer for scafctl.
|
Package writer provides a centralized CLI output writer for scafctl. |