Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultParser = NewParser()
DefaultParser is a convenience parser for simple use cases.
Functions ¶
func IsActionDetails ¶
IsActionDetails returns true if action is "details" (case-insensitive).
func IsActionRun ¶
IsActionRun returns true if action is "run" or empty (case-insensitive).
func IsModeShuffle ¶
IsModeShuffle returns true if mode is "shuffle" (case-insensitive).
func Parse ¶
func Parse(raw map[string]string, dest any, ctx *ParseContext) error
Parse is a convenience function using the default parser.
func ShouldRun ¶
func ShouldRun(g zapscript.GlobalArgs) bool
ShouldRun returns true if the command should execute based on the When condition.
Types ¶
type ParseContext ¶
type ParseContext struct {
LauncherIDs []string
}
ParseContext provides runtime context for validation.
func NewParseContext ¶
func NewParseContext(launcherIDs []string) *ParseContext
NewParseContext creates a ParseContext from a list of launcher IDs.
Click to show internal directories.
Click to hide internal directories.