Documentation
¶
Overview ¶
Package recipes composes a pack's pipelines.
A recipe builds a pipeline; it does not run one. The caller runs it, which is what lets the TUI show the stages before anything is fetched and lets a dry run skip the sinks that commit.
Index ¶
Constants ¶
const ( DefaultOpenMojiVersion = settings.DefaultOpenMojiVersion DefaultUnicodeVersion = settings.DefaultUnicodeVersion )
Emoji recipe defaults, kept under their old names. The settings registry owns the values now; these alias it so nothing reading the old constants can see a different number.
const ( RecipeAuto = "auto" RecipeGeneric = "generic" RecipeEmojiSets = "emoji-sets" RecipeBundled = "bundled" )
Recipe names a pack config's `recipe` field may carry.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build returns the pipelines for a pack, in the order they must run.
Dispatch is on the pack's `recipe` field when it names one, else on the pack NAME first and the source type second -- reversing those breaks icon-sets-emoji, which declares source.type "url" because that is how its *version* is discovered while its assets come from three separate upstreams that only the named recipe knows about.
func Select ¶
func Select(pack *config.PackConfig) string
Select names the recipe a pack runs, or "" when none applies.
Types ¶
type Options ¶
type Options struct {
// DryRun drops the committing sinks: the version stamp and the git branch.
// The filesystem sinks still run, so a dry run shows the real diff in the
// pack's working tree.
DryRun bool
// ConfigDir is where the bundled pack's set manifest lives.
ConfigDir string
// Settings is this pack's resolved settings. Nil means the defaults.
Settings *settings.Resolved
// Git overrides the git/gh runner, for tests. Nil means real subprocesses.
Git gitx.Runner
}
Options carries what a recipe needs beyond the pack config.