exec

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdExecutor added in v0.3.0

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

func New added in v0.3.0

func New(log *slog.Logger) *CmdExecutor

func (*CmdExecutor) Execute added in v0.3.0

func (i *CmdExecutor) Execute(ctx context.Context, p *Params) (out string, err error)

func (*CmdExecutor) WithCommandFn added in v0.3.0

func (i *CmdExecutor) WithCommandFn(c func(ctx context.Context, name string, arg ...string) *exec.Cmd) *CmdExecutor

type Params added in v0.3.0

type Params struct {
	Name     string
	Args     []string
	Dir      string
	Timeout  time.Duration
	Combined bool
	Stdin    string
	Env      []string
}

Jump to

Keyboard shortcuts

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