Documentation ¶
Index ¶
- type CommandBuilder
- func (b *CommandBuilder) Build() (exec.Cmd, error)
- func (b *CommandBuilder) IncludeOSEnvironment() *CommandBuilder
- func (b *CommandBuilder) WithArguments(a ...string) *CommandBuilder
- func (b *CommandBuilder) WithEnvironmentVariable(key string, value string) *CommandBuilder
- func (b *CommandBuilder) WithEnvironmentVariables(envs []string) *CommandBuilder
- func (b *CommandBuilder) WithTimeout(t time.Duration) *CommandBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandBuilder ¶
type CommandBuilder struct {
// contains filtered or unexported fields
}
func NewCommandBuilder ¶
func NewCommandBuilder(command string) *CommandBuilder
Get a new command builder instance
func (*CommandBuilder) IncludeOSEnvironment ¶
func (b *CommandBuilder) IncludeOSEnvironment() *CommandBuilder
func (*CommandBuilder) WithArguments ¶
func (b *CommandBuilder) WithArguments(a ...string) *CommandBuilder
func (*CommandBuilder) WithEnvironmentVariable ¶
func (b *CommandBuilder) WithEnvironmentVariable(key string, value string) *CommandBuilder
func (*CommandBuilder) WithEnvironmentVariables ¶
func (b *CommandBuilder) WithEnvironmentVariables(envs []string) *CommandBuilder
func (*CommandBuilder) WithTimeout ¶
func (b *CommandBuilder) WithTimeout(t time.Duration) *CommandBuilder
Click to show internal directories.
Click to hide internal directories.