stack

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package stack maps a repo root to the ordered gate list that should run in it. Detection is data-driven (marker file → stack) so new stacks slot in without engine changes.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoStack = errors.New("gauntlet: no supported stack detected in this directory")

ErrNoStack is returned when no marker file matches. The caller decides whether that's an error (`gauntlet check`) or a no-op (a doctor command).

Functions

This section is empty.

Types

type Stack

type Stack struct {
	Name  string   // "go", "typescript"
	Gates []string // gate names in run order
}

Stack describes one detected toolchain.

func Detect

func Detect(root string) ([]Stack, error)

Detect walks the registry and returns every stack whose marker exists at `root`. Order preserved from registry order.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL