actions

package
v0.0.0-...-2dffec4 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action struct {
	Bundles []string `toml:"bundles"`
}

Action represents a collection of bundles to be executed together

type Bundle

type Bundle struct {
	Scripts []Script `toml:"scripts"`
}

Bundle represents a collection of scripts

type Config

type Config struct {
	Exec ExecConfig `toml:"exec"`
}

Config represents the top-level configuration structure

type ExecConfig

type ExecConfig struct {
	Shell string `toml:"shell"`
}

ExecConfig represents the shell execution configuration

type Script

type Script struct {
	Path string   `toml:"path"`
	Tags []string `toml:"tags"`
}

Script represents a single executable script with associated tags

func FilterScriptsByTags

func FilterScriptsByTags(scripts []Script, tags []string) []Script

FilterScriptsByTags returns scripts that match all specified tags

func GetScriptsForAction

func GetScriptsForAction(actions map[string]Action, bundles map[string]Bundle, actionName string) ([]Script, error)

GetScriptsForAction returns all scripts for a given action name

func GetScriptsForBundle

func GetScriptsForBundle(bundles map[string]Bundle, bundleName string) ([]Script, error)

GetScriptsForBundle returns all scripts for a given bundle name

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳