template

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL