liveexec

package
v1.2.0-alpha18 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(dir, binPath string, opts ExecCommandOptions, arg ...string) error

ExecCommand allows handling output of executed command in realtime by CommandOptions.OutputLineHandler. User could set expectations on the output lines in the CommandOptions.OutputLineHandler to fail fast and give immediate feedback of failed assertion during command execution.

Types

type ExecCommandOptions

type ExecCommandOptions struct {
	Env               map[string]string
	OutputLineHandler func(string)
}

ExecCommandOptions is an options for ExecCommand

Jump to

Keyboard shortcuts

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