Versions in this module Expand all Collapse all v0 v0.2.0 Sep 21, 2026 v0.1.0 Sep 21, 2026 Changes in this version + const FormatJSON + const FormatTOML + const FormatYAML + var DefaultExtensions = []string + func Discover(opts DiscoverOptions) ([]string, error) + func DiscoverAndLoad(opts DiscoverOptions, override bool) (taskrun.Definition, error) + func LegacyMap(scripts map[string]any, baseDir string) (taskrun.Definition, error) + func Load(ext string, reader io.Reader, source, baseDir string) (taskrun.Definition, error) + func LoadFile(path string) (taskrun.Definition, error) + func LoadFiles(paths []string, override bool) (taskrun.Definition, error) + func Merge(defs []taskrun.Definition, override bool) (taskrun.Definition, error) + func SplitCommandLine(line string) (string, []string, error) + type DiscoverMode string + const Ancestors + const Nearest + type DiscoverOptions struct + Extensions []string + MaxDepth int + Mode DiscoverMode + Names []string + StartDir string + StopDir string + type LegacyOptions struct + BaseDir string + DefaultShell string + EnvNames []string + Files map[string]LegacyScriptFile + RuntimeVars []string + Scripts map[string]any + Settings map[string]any + type LegacyResult struct + Definition taskrun.Definition + Warnings []string + func LegacyDefinition(opts LegacyOptions) (LegacyResult, error) + type LegacyScriptFile struct + Bin string + Ext string + Path string