localexec

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct{}

func New

func New() Command

func (Command) Run

func (c Command) Run(ctx context.Context, cmd string, opts ...Option) error

type Option

type Option func(options *runOptions)

func WithEnv

func WithEnv(env []string) Option

func WithStdout

func WithStdout(stdout io.Writer) Option

type Service

type Service interface {
	Run(ctx context.Context, cmd string, options ...Option) error
}

Jump to

Keyboard shortcuts

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