cmdexec

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithExecutor

func WithExecutor(ctx context.Context, exec Executor) context.Context

Types

type Executor

type Executor interface {
	Run(bin string, args ...string) (string, error)
}

func ExecutorFromContext

func ExecutorFromContext(ctx context.Context) (Executor, bool)

func MustExecutor

func MustExecutor(ctx context.Context) Executor

func NewExecutor

func NewExecutor() Executor

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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