Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMissingShell = errors.New("missing shell") ErrUnrecognizedShell = errors.New("unrecognized shell") )
View Source
var ErrMissingInput = errors.New("missing input")
Functions ¶
This section is empty.
Types ¶
type Process ¶
type Process struct { Directory string Environment []string Shell Shell Verbose bool Args []string }
Process is a child process.
type Shell ¶
type Shell uint
Shell is the name of a shell program to use to execute a command in.
func DefaultShell ¶ added in v0.1.1
func DefaultShell() Shell
DefaultShell returns the default shell, based on the platform.
func MustParseShell ¶
Parses an input string as a shell name but panics if it would fail.
func ParseShell ¶
Parses an input string as a shell name.
NOTE: This is a best effort implementation. Please open an issue on GitHub if some values are missing: github.com/coffeebeats/gdbuild/issues/new?labels=bug&template=%F0%9F%90%9B-bug-report.md.
func (*Shell) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.