Documentation
¶
Index ¶
- Variables
- type AddEnvironment
- type Caller
- type Command
- type Configure
- type Configures
- type CreateWithContext
- type Creator
- type Debug
- type DebugBuilder
- type DefaultCreator
- type Error
- type Executable
- type Fail
- type FrozenArguments
- type Git
- type PathChecked
- type Process
- type ProcessCommand
- type SetEnvironment
- type VCS
Constants ¶
This section is empty.
Variables ¶
View Source
var PathChecker = PathChecked{}
Functions ¶
This section is empty.
Types ¶
type AddEnvironment ¶
type AddEnvironment struct {
// contains filtered or unexported fields
}
func AddEnv ¶
func AddEnv(e environment.Env) (a AddEnvironment)
func (AddEnvironment) ConfigureCommand ¶
func (a AddEnvironment) ConfigureCommand(cmd *exec.Cmd)
type Configures ¶
type Configures struct {
// contains filtered or unexported fields
}
func (Configures) ConfigureCommand ¶
func (c Configures) ConfigureCommand(cmd *exec.Cmd)
type CreateWithContext ¶
type CreateWithContext struct {
// contains filtered or unexported fields
}
func WithContext ¶
func WithContext(ctx context.Context) (c CreateWithContext)
type DebugBuilder ¶
type DebugBuilder struct {
// contains filtered or unexported fields
}
func NewDebugBuilder ¶
func NewDebugBuilder(w io.Writer) (d DebugBuilder)
func (DebugBuilder) NewCommand ¶
func (d DebugBuilder) NewCommand(execPath string) (c Command, err error)
type DefaultCreator ¶
type DefaultCreator struct{}
type Error ¶
type Error struct {
// The string describing the executable.
Exec string
// Message written to stderr from the executable.
Message []byte
// contains filtered or unexported fields
}
An error describing the context of a failed communication with a process.
type Executable ¶
type Executable struct {
// contains filtered or unexported fields
}
func NewExecutable ¶
func NewExecutable(cmd string) (e Executable)
type FrozenArguments ¶
type FrozenArguments struct {
// contains filtered or unexported fields
}
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
A wrapper around the git command line application. Implements the VCS interface.
func DefaultGit ¶
func DefaultGit() (g Git)
type PathChecked ¶
type PathChecked struct{}
type Process ¶
type Process struct {
Stderr io.ReadCloser
Stdout io.ReadCloser
Stdin io.WriteCloser
// contains filtered or unexported fields
}
A wrapper around a process that pipes input to the started process, handles output and errors returned by the process.
type ProcessCommand ¶
type ProcessCommand struct {
// contains filtered or unexported fields
}
ProcessCommand is a wrapper around a path to a valid executable file. It can be used to start up a process with a set of arguments.
type SetEnvironment ¶
type SetEnvironment struct {
// contains filtered or unexported fields
}
func SetEnv ¶
func SetEnv(e environment.Env) (s SetEnvironment)
func (SetEnvironment) ConfigureCommand ¶
func (s SetEnvironment) ConfigureCommand(cmd *exec.Cmd)
Click to show internal directories.
Click to hide internal directories.