Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BranchResult ¶
type BranchingEngine ¶
type BranchingEngine struct {
// contains filtered or unexported fields
}
func NewBranchingEngine ¶
func NewBranchingEngine() *BranchingEngine
func (*BranchingEngine) AddFailure ¶
func (e *BranchingEngine) AddFailure(command, handler string)
func (*BranchingEngine) AddSuccess ¶
func (e *BranchingEngine) AddSuccess(command, handler string)
func (*BranchingEngine) Execute ¶
func (e *BranchingEngine) Execute(result *BranchResult) string
type CommandMatcher ¶
type CommandMatcher struct {
// contains filtered or unexported fields
}
func NewCommandMatcher ¶
func NewCommandMatcher() *CommandMatcher
func (*CommandMatcher) ExtractBasename ¶
func (m *CommandMatcher) ExtractBasename(command string) string
func (*CommandMatcher) Match ¶
func (m *CommandMatcher) Match(command string) *CommandRule
func (*CommandMatcher) StripFlags ¶
func (m *CommandMatcher) StripFlags(command string) string
type CommandRule ¶
type MatchOutput ¶
type MatchOutput struct {
FullOutput string `json:"full_output"`
Substring string `json:"substring"`
MatchCount int `json:"match_count"`
Matched bool `json:"matched"`
}
func MatchWholeOutput ¶
func MatchWholeOutput(output, substring string) *MatchOutput
Click to show internal directories.
Click to hide internal directories.