Documentation
¶
Overview ¶
Package io ships process-stdio primitives: io.stdin reads newline-delimited items from standard input; io.stdout and io.stderr write each item as a line and pass it through. The io.write_text action writes raw rendered text to stdout and passes its input through. Neither sink owns the stream — the CLI still writes the final payload to stdout.
Index ¶
Constants ¶
const ID = "io"
Variables ¶
var WriteTextAction = action.New("io.write_text", func(_ context.Context, input map[string]any) (map[string]any, error) { return writeTextInput(os.Stdout, input) }). Description("Write raw text to stdout and pass the input through"). Tag("io", "stdout", "text"). Build()
WriteTextAction writes already-rendered text to stdout and passes the input through.
Functions ¶
func InSource ¶
func InSource() action.AnyStreamAction
InSource returns the io.stdin stream source reading process stdin.
func StderrOperator ¶
func StderrOperator() action.NamedOperator
StderrOperator returns io.stderr: each item is written as a line to stderr and passed through unchanged.
func StdoutOperator ¶
func StdoutOperator() action.NamedOperator
StdoutOperator returns io.stdout: each item is written as a line to stdout and passed through unchanged.