builder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Build

func (b *CommandBuilder) Build() (exec.Cmd, error)

Builds a Command

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

Jump to

Keyboard shortcuts

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