iostream

package
v0.7.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Streams

type Streams struct {
	Out io.Writer
	Err io.Writer
}

Streams bundles the standard output and error writers. Out is for results (data a script would consume). Err is for status, progress, and warnings.

func FromCmd

func FromCmd(cmd *cobra.Command) Streams

FromCmd creates Streams from a cobra command's configured writers.

func (Streams) ErrPrintf

func (s Streams) ErrPrintf(format string, a ...any)

func (Streams) ErrPrintln

func (s Streams) ErrPrintln(a ...any)

func (Streams) Printf

func (s Streams) Printf(format string, a ...any)

func (Streams) Println

func (s Streams) Println(a ...any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL