actiongen

package
v0.5.26 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderGenerated = `` /* 163-byte string literal not displayed */

Variables

This section is empty.

Functions

func Sync

func Sync(path string, a Action) (changed bool, err error)

Sync writes a's YAML to path when it differs from what is already there.

Types

type Action

type Action struct {
	Name        string
	Description string
	Author      string
	Branding    Branding
	Header      string
	Inputs      []Input
	Outputs     []Output
	Steps       []Step
}

func (Action) Render

func (a Action) Render() []byte

Render produces the action YAML. It is deterministic.

type Branding

type Branding struct {
	Icon  string
	Color string
}

type Input

type Input struct {
	Name        string
	Description string
	Default     string
	Required    bool
}

type KeyValue

type KeyValue struct {
	Key   string
	Value string
}

KeyValue is an ordered key-value pair.

type Output

type Output struct {
	Name        string
	Description string
	Value       string
}

type Step

type Step struct {
	Name    string
	ID      string
	If      string
	Uses    string
	With    []KeyValue
	Shell   string
	Run     string
	Env     []KeyValue
	Comment string
}

Jump to

Keyboard shortcuts

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