Documentation
¶
Overview ¶
Package projcheck finds the commands a repository already uses to check itself: its Makefile targets, its package.json scripts, and the stock commands of the toolchains it declares (go.mod, Cargo.toml, pyproject.toml).
It exists for the Tasks screen's templates. A task is done only when its done_criteria exit 0, so a template that prefills `go test ./...` into a JavaScript repository hands the user a task that can never go green. The screen asks this package instead of guessing, and offers nothing it did not find — an empty list is an honest answer, a wrong command is not.
Detection reads files and never runs anything: no `make -n`, no package manager, no network. A target or script is reported only when the file names it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Check ¶
type Check struct {
Command string `json:"command"`
Kind Kind `json:"kind"`
// Source is the file that names it: "Makefile", "package.json", "go.mod".
Source string `json:"source"`
}
Check is one command the repository already has.