exec

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(
	ctx ExecContext,
	args []string,
	stdout io.Writer,
	stderr io.Writer,
	stdin io.Reader,
) int

func ExecCommandStr

func ExecCommandStr(
	ctx ExecContext,
	args string,
	stdout io.Writer,
	stderr io.Writer,
	stdin io.Reader,
) int

Types

type ExecContext

type ExecContext interface {
	ResolveAlias(args []string) []string
	Env() map[string]string
}

Jump to

Keyboard shortcuts

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