package exec

import "github.com/IBM/fp-go/exec"

Index

Variables

var (
	// StdOut returns the field of a [CommandOutput] representing `stdout`
	StdOut = P.Head[[]byte, []byte]
	// StdErr returns the field of a [CommandOutput] representing `stderr`
	StdErr = P.Tail[[]byte, []byte]
)

Types

type CommandOutput

type CommandOutput = P.Pair[[]byte, []byte]

CommandOutput represents the output of executing a command. The first field in the [Tuple2] is stdout, the second one is stderr. Use StdOut and StdErr to access these fields

Source Files

exec.go

Version
v1.0.151 (latest)
Published
Nov 23, 2024
Platform
linux/amd64
Imports
1 packages
Last checked
4 months ago

Tools for package owners.