Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandMatchers ¶
CommandMatchers represents different command matching strategies.
type ParseMessage ¶
type ParseMessage struct {
Selects []Select `yaml:"selects"`
Actions map[string]string `yaml:"actions"`
Preview string `yaml:"preview"`
}
ParseMessage holds template for message that will be parsed by defined parser.
type Template ¶
type Template struct {
Type string `yaml:"type"`
Trigger Trigger `yaml:"trigger"`
SkipCommandExecution bool `yaml:"-"`
ParseMessage ParseMessage `yaml:"-"`
WrapMessage WrapMessage `yaml:"-"`
TutorialMessage TutorialMessage `yaml:"-"`
}
Template represents a template for message parsing.
func FindTemplate ¶
FindTemplate finds a template with a matching command prefix.
type Trigger ¶
type Trigger struct {
Command CommandMatchers `yaml:"command"`
}
Trigger represents the trigger configuration for a template.
type TutorialMessage ¶
type TutorialMessage struct {
Buttons api.Buttons `yaml:"buttons"`
Header string `yaml:"header"`
Paginate Paginate `yaml:"paginate"`
}
TutorialMessage holds template interactive tutorial message.
type WrapMessage ¶
WrapMessage holds template for wrapping command output with additional context.
Click to show internal directories.
Click to hide internal directories.