exec

package
v0.0.0-...-47649f3 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: BSD-3-Clause Imports: 2 Imported by: 4

Documentation

Overview

Package exec provides a interface to run external commands as an abstraction layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecuteOptions

type ExecuteOptions struct {
	Cmd    string
	Args   []string
	Envs   []string
	Dir    string
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

ExecuteOptions specify parameters to the Execute method.

type Executor

type Executor interface {
	// Execute executes the specified command.
	Execute(opts ExecuteOptions) error
}

type OsExecutor

type OsExecutor struct{}

func (OsExecutor) Execute

func (OsExecutor) Execute(opts ExecuteOptions) error

Directories

Path Synopsis
Package exectest provides fake implementations of the exec package.
Package exectest provides fake implementations of the exec package.

Jump to

Keyboard shortcuts

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