Function engine

  • Parameters

    • argv: string[]

      The CLI-style arguments.

    • config: RunnerConfig

      The resolved runner configuration.

    Returns Promise<ActionResult[] & {
        statuses: ActionStatusEntry[];
    }>

    The executed operation outcomes, annotated with their source pair; the returned array additionally carries a statuses property with the per-action three-state outcomes (the existing array contract is preserved).

    Description

    The validation + render→execute pipeline. Parses arguments, validates that a generator/action and its folder exist (throwing ShowHelpError when they do not), then iterates the name-outer × action-inner expansion: each (name, action) pair runs a full pipeline (prompt hook → render → ops) with args.name as the scalar of the current expansion. Locals do not carry between pairs — only CLI flags do. Lifecycle hooks wrap the pipeline: project hooks outside action hooks, beforeEach before prompting, afterEach with the pair's results. Fail-fast is the default; --keep-going continues collecting failing pairs and reports them all at the end.