execx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsFold

func ContainsFold(haystack, needle string) bool

func IsTTY

func IsTTY() bool

func PrependToPATH added in v0.2.0

func PrependToPATH(dir, pathVal string) string

PrependToPATH returns a PATH string with dir inserted at the beginning. If dir already exists in the PATH (anywhere), it is de-duplicated.

func SanitizedEnv added in v0.2.0

func SanitizedEnv() []string

func ShellJoin

func ShellJoin(argv []string) string

func ShimDir

func ShimDir() string

func WhichSkippingShims

func WhichSkippingShims(tool string) (string, error)

Types

type Result

type Result struct {
	ExitCode     int
	Mode         string // "pty" or "pipes"
	StdoutTail   string
	StderrTail   string
	CombinedTail string
}

func Run

func Run(exe string, args []string) (Result, error)

type Tail

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

func NewTail

func NewTail(maxBytes int) *Tail

func (*Tail) String

func (t *Tail) String() string

func (*Tail) Write

func (t *Tail) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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