cmdext

package
v0.0.69 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandResult

type CommandResult struct {
	StdOut          string
	StdErr          string
	StdCombined     string
	ExitCode        int
	CommandTimedOut bool
}

func RunCommand

func RunCommand(program string, args []string, timeout *time.Duration) (CommandResult, error)

type CommandRunner added in v0.0.68

type CommandRunner struct {
	// contains filtered or unexported fields
}

func Runner added in v0.0.68

func Runner(program string) *CommandRunner

func (*CommandRunner) Arg added in v0.0.68

func (r *CommandRunner) Arg(arg string) *CommandRunner

func (*CommandRunner) Args added in v0.0.68

func (r *CommandRunner) Args(arg []string) *CommandRunner

func (*CommandRunner) Env added in v0.0.68

func (r *CommandRunner) Env(key, value string) *CommandRunner

func (*CommandRunner) Envs added in v0.0.68

func (r *CommandRunner) Envs(env []string) *CommandRunner

func (*CommandRunner) RawEnv added in v0.0.68

func (r *CommandRunner) RawEnv(env string) *CommandRunner

func (*CommandRunner) Run added in v0.0.68

func (r *CommandRunner) Run() (CommandResult, error)

func (*CommandRunner) Timeout added in v0.0.68

func (r *CommandRunner) Timeout(timeout time.Duration) *CommandRunner

Jump to

Keyboard shortcuts

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