install

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InstallScriptPowerUpName is the unique name for the install script power-up
	InstallScriptPowerUpName = "install_script"
)

Variables

This section is empty.

Functions

func GetInstallSentinelPath

func GetInstallSentinelPath(pack string, pathsInstance *paths.Paths) string

GetInstallSentinelPath returns the path to the sentinel file for a pack Deprecated: Use pathsInstance.SentinelPath("install", pack) instead

func NewInstallScriptPowerUp

func NewInstallScriptPowerUp() types.PowerUp

NewInstallScriptPowerUp creates a new instance of the install script power-up

func RegisterInstallScriptPowerUpFactory

func RegisterInstallScriptPowerUpFactory()

RegisterInstallScriptPowerUpFactory registers the install script power-up factory

Types

type InstallScriptPowerUp

type InstallScriptPowerUp struct{}

InstallScriptPowerUp runs install.sh scripts

func (*InstallScriptPowerUp) Description

func (p *InstallScriptPowerUp) Description() string

Description returns a human-readable description of what this power-up does

func (*InstallScriptPowerUp) GetTemplateContent

func (p *InstallScriptPowerUp) GetTemplateContent() string

GetTemplateContent returns the template content for this power-up

func (*InstallScriptPowerUp) Name

func (p *InstallScriptPowerUp) Name() string

Name returns the unique name of this power-up

func (*InstallScriptPowerUp) Process

func (p *InstallScriptPowerUp) Process(matches []types.TriggerMatch) ([]types.Action, error)

Process takes install script matches and generates install actions

func (*InstallScriptPowerUp) RunMode

func (p *InstallScriptPowerUp) RunMode() types.RunMode

RunMode returns whether this power-up runs once or many times

func (*InstallScriptPowerUp) ValidateOptions

func (p *InstallScriptPowerUp) ValidateOptions(options map[string]interface{}) error

ValidateOptions checks if the provided options are valid for this power-up

Jump to

Keyboard shortcuts

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