Documentation
¶
Overview ¶
Package detect inspects a directory tree for project signals (go.mod, package.json, …) and reports the stack so @init can pre-tick the right modules.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Project ¶
type Project struct {
Root string // directory where the project signal was found
Stack Stack
PackageManager string // for Node: pnpm | yarn | bun | npm
Standardgo bool // for Go: standardgo is pinned as a tool dependency
}
Project is the result of detection: the stack plus useful context for module composition (project root, package manager, …).
func Detect ¶
Detect walks up from dir looking for project signals and returns the first match. If nothing is recognized it returns a Project with StackUnknown rooted at dir. When multiple stacks are present in one directory, Go wins (a deliberate v1 simplification; revisit if it bites), and shell loses to everything — see inspect.
Click to show internal directories.
Click to hide internal directories.