hook

package
v1.15.1-0...-b24b838 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(_ context.Context, cmds []string, opts ExecOptions) error

Exec will execute a series of shell commands or scripts

Types

type DevNull

type DevNull struct{}

DevNull simulates the writing to /dev/null within a Linux OS, pinched from https://github.com/go-task/task/blob/master/internal/execext/devnull.go

func (DevNull) Close

func (DevNull) Close() error

func (DevNull) Read

func (DevNull) Read(_ []byte) (int, error)

func (DevNull) Write

func (DevNull) Write(p []byte) (int, error)

type ExecOptions

type ExecOptions struct {
	Debug  bool
	DryRun bool
	Env    []string
}

ExecOptions provides a way of customising the execution of commands

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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