exec

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cmd *exec.Cmd, middlewares ...Middleware) error

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func NewCommand

func NewCommand(ctx context.Context, name string, arg ...string) *Command

func (*Command) Args

func (c *Command) Args(args ...string) *Command

func (*Command) Dir

func (c *Command) Dir(dir string) *Command

func (*Command) Env

func (c *Command) Env(env ...string) *Command

func (*Command) Middleware

func (c *Command) Middleware(mw ...Middleware) *Command

func (*Command) Run

func (c *Command) Run() error

func (*Command) Stderr

func (c *Command) Stderr(v io.Writer) *Command

func (*Command) Stdin

func (c *Command) Stdin(v io.Reader) *Command

func (*Command) Stdout

func (c *Command) Stdout(v io.Writer) *Command

type Handler

type Handler func(ctx context.Context, cmd *exec.Cmd) error

type Middleware

type Middleware func(next Handler) Handler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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