Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleSentinel ¶
type SimpleSentinel struct {
Command string // the command, e.g. 'echo "Rumplestiltskin"'
Value string // the sentinel value to look for, e.g. 'Rumplestiltskin'.
// contains filtered or unexported fields
}
SimpleSentinel asserts Found if it sees Value anywhere in the output of Command.
func (*SimpleSentinel) Found ¶
func (c *SimpleSentinel) Found() bool
Found returns true if Value found.
func (*SimpleSentinel) Line ¶
func (c *SimpleSentinel) Line() string
func (*SimpleSentinel) Match ¶
func (c *SimpleSentinel) Match() string
Match returns the most recent match.
Click to show internal directories.
Click to hide internal directories.