Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandInfo ¶ added in v1.0.1
type CommandInfo interface {
String() string
}
CommandInfo defines the minimal interface that identifies a Command.
type RawResult ¶
type RawResult struct {
CmdPtr CommandInfo // command.Command pointer
Stdout string // collected standard output
Stderr string // collected standard error
ExitCode int // process exit code
Duration time.Duration // time taken to run the command
Err error // any error from execution or parsing
}
RawResult holds the outcome of running a command
func NewRawResult ¶
func NewRawResult(cmdPtr CommandInfo) *RawResult
NewRawResult initializes a RawResult for the given shell command
Click to show internal directories.
Click to hide internal directories.