Documentation
¶
Index ¶
- Constants
- type TemplatePowerUp
- func (p *TemplatePowerUp) Description() string
- func (p *TemplatePowerUp) GetTemplateContent() string
- func (p *TemplatePowerUp) Name() string
- func (p *TemplatePowerUp) Process(matches []types.TriggerMatch) ([]types.Action, error)
- func (p *TemplatePowerUp) RunMode() types.RunMode
- func (p *TemplatePowerUp) ValidateOptions(options map[string]interface{}) error
Constants ¶
View Source
const (
// TemplatePowerUpName is the unique name for the template power-up
TemplatePowerUpName = "template"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplatePowerUp ¶
type TemplatePowerUp struct {
// contains filtered or unexported fields
}
TemplatePowerUp processes template files and expands variables
func NewTemplatePowerUp ¶
func NewTemplatePowerUp() *TemplatePowerUp
NewTemplatePowerUp creates a new TemplatePowerUp
func (*TemplatePowerUp) Description ¶
func (p *TemplatePowerUp) Description() string
Description returns a human-readable description
func (*TemplatePowerUp) GetTemplateContent ¶
func (p *TemplatePowerUp) GetTemplateContent() string
GetTemplateContent returns the template content for this power-up
func (*TemplatePowerUp) Name ¶
func (p *TemplatePowerUp) Name() string
Name returns the unique name of this power-up
func (*TemplatePowerUp) Process ¶
func (p *TemplatePowerUp) Process(matches []types.TriggerMatch) ([]types.Action, error)
Process takes template files and generates processed file actions
func (*TemplatePowerUp) RunMode ¶
func (p *TemplatePowerUp) RunMode() types.RunMode
RunMode returns when this power-up should run
func (*TemplatePowerUp) ValidateOptions ¶
func (p *TemplatePowerUp) ValidateOptions(options map[string]interface{}) error
ValidateOptions checks if the provided options are valid
Click to show internal directories.
Click to hide internal directories.