execute

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct{}

func New

func New() *Executor

func (*Executor) Run

func (exc *Executor) Run(ctx context.Context, params *Params) error

type Params

type Params struct {
	Shell      []string
	Script     string
	WorkingDir string
	Envs       []string
	Quiet      bool
	DryRun     bool
	Timeout    *Timeout
}

type Timeout

type Timeout struct {
	Duration  time.Duration
	KillAfter time.Duration
}

Jump to

Keyboard shortcuts

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