cmd

package
v0.0.72 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package cmd provides a common interface for executing commands.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	// Exec executes the command provided by given arguments in given working
	// directory using stdin as input while redirecting stdout and stderr to
	// given writers.
	Exec(stdin io.Reader, stdout, stderr io.Writer,
		dir string, env []string, args ...string) error
}

Executor provides a common interface for executing commands.

func NewExecutor

func NewExecutor() Executor

NewExecutor creates a new default command executor.

Jump to

Keyboard shortcuts

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