scripting

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 6 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 interface {
	BashExec(ctx context.Context, in string) (stdout string, stderr string, exitErr *exec.ExitError)
	Exec(ctx context.Context, bin string, args ...string) (stdout string, stderr string, exitErr *exec.ExitError)
	QuietBashExec(ctx context.Context, in string) (stdout string, stderr string, exitErr *exec.ExitError)
	QuietExec(ctx context.Context, bin string, args ...string) (stdout string, stderr string, exitErr *exec.ExitError)
}

Executor is a helper for running scripting

func New

func New() Executor

New returns a new bash executor

Jump to

Keyboard shortcuts

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