exec

package
v2.13.3 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package exec provides utilities for executing system commands with Either-based error handling.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Command executes a system command and returns the result as an Either.
	// Use this version if the command does not produce any side effects,
	// i.e., if the output is uniquely determined by the input.
	// For commands with side effects, typically you'd use the IOEither version instead.
	//
	// Parameters (curried):
	//   - name: The command name/path
	//   - args: Command arguments
	//   - in: Input bytes to send to the command's stdin
	//
	// Returns Either[error, CommandOutput] containing the command's output or an error.
	//
	// Example:
	//
	//	result := exec.Command("echo")( []string{"hello"})([]byte{})
	//	// result is Right(CommandOutput{Stdout: "hello\n", ...})
	Command = F.Curry3(command)
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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