command

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Emit

func Emit(stdoutContent, stderrContent string) yup.Command

Emit creates a command that produces output on both stdout and stderr. This is primarily useful for testing pipelines and demonstrating error handling.

Example:

// Emit "hello" to stdout and "warning" to stderr
cmd := emit.Emit("hello", "warning")
yup.MustRun(cmd)

Types

This section is empty.

Jump to

Keyboard shortcuts

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