Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CmdLogger ¶
type CmdLogger struct {
// contains filtered or unexported fields
}
CmdLogger captures the Stdout and Stderr output of a process, writes it to the console and exposes functions to returns the most relevant output based on the status code:
- stdout if the process was successful
- stderr if the process failed and produced an error message
- stdout if the process failed but there is no stderr output
func (*CmdLogger) Output ¶
func (l *CmdLogger) Output() (ProcessOutput, error)
Output returns the most relevant output based on the exit code.
type ProcessOutput ¶
type ProcessOutput struct {
// contains filtered or unexported fields
}
ProcessOutput represents lines printed by a process.
func (*ProcessOutput) Empty ¶
func (s *ProcessOutput) Empty() bool
Click to show internal directories.
Click to hide internal directories.