Documentation
¶
Index ¶
- func CreateValue(value any, state *lua.LState) lua.LValue
- func Error(state *lua.LState, err string)
- func GetValue(value lua.LValue) any
- func LoadPlugins(to string, r *Runner, lg *log.Logger, plugins PluginMap, reqs []string, ...)
- func MapSchema(schema, data map[string]any) map[string]any
- func ParseEnum[T constraints.Integer](enum int, enums []T, lib *Lib) T
- type Arg
- type ArgType
- type ArrayType
- type Lib
- func (l *Lib) BuilderFunction(state *lua.LState, t *lua.LTable, name string, args []Arg, ...)
- func (l *Lib) CreateFunction(lib *lua.LTable, name string, args []Arg, ...)
- func (l *Lib) ParseArgs(state *lua.LState, name string, args []Arg, ln, level int) (map[string]any, int)
- func (l *Lib) ParseValue(state *lua.LState, pos int, value lua.LValue, arg Arg) any
- func (l *Lib) TableFunction(state *lua.LState, t *lua.LTable, name string, args []Arg, ...)
- type PluginMap
- type Runner
- func (r *Runner) Help(file string, wf *workflow.Workflow) (string, error)
- func (r *Runner) Run(file string, plugins PluginMap) error
- func (r *Runner) WorkflowConfig(l *lua.LState, ext string) map[string]any
- func (r *Runner) WorkflowInfo(name string, wf *workflow.Workflow, lg *log.Logger) *lua.LTable
- func (r *Runner) WorkflowInit(name string, lg *log.Logger, plugins PluginMap) *lua.LTable
- type TaskData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadPlugins ¶
Types ¶
type Lib ¶
func (*Lib) BuilderFunction ¶ added in v0.3.0
func (*Lib) CreateFunction ¶
func (*Lib) ParseValue ¶
type Runner ¶
type Runner struct {
State *lua.LState
Dir string
Config *config.Config
Entry string
ConfigData map[string]any
SecretData map[string]any
Failed string
Wg *sync.WaitGroup
CMDParser *argparse.Parser
CLIMode bool
// -- collections
TC *collection.Collection[collection.ItemTask]
IC *collection.Collection[collection.ItemImage]
CC *collection.Collection[collection.ItemContext]
QR *collection.Collection[collection.ItemQR]
// -- crates
CR_WIN *collection.Crate[giu.MasterWindow]
CR_REF *collection.Crate[collection.RefItem[any]]
CR_GMP *collection.Crate[yyp.Project]
CR_TEA *collection.Crate[teamodels.TeaItem]
CR_LIP *collection.Crate[collection.StyleItem]
// contains filtered or unexported fields
}
func (*Runner) WorkflowConfig ¶ added in v0.3.0
func (*Runner) WorkflowInfo ¶ added in v0.3.0
Click to show internal directories.
Click to hide internal directories.