Documentation
¶
Overview ¶
Package hanko adapts the Hanko CLI for tsuba. We shell out via os/exec rather than importing Hanko as a Go package because Hanko's validator lives in an internal/ path and we do not want to force Hanko to commit to a stable API surface just so Tsuba can call it. See docs/research/phase-1-spec.md section 8 for the reasoning.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotInstalled = errors.New("hanko is not installed or not on PATH")
ErrNotInstalled is returned when the hanko binary is not found on PATH. Callers (CLI, doctor) turn this into a clear user-facing message.
Functions ¶
func Validate ¶
Validate runs `hanko check <targetDir>` and returns exit code + stdout. When exit is non-zero, stdout contains the pretty error report; we do not parse JSON here (the CLI can ask Hanko for --json itself if it wants structured output). Returns ErrNotInstalled when hanko is missing, so the doctor / validate commands can print a friendly note.
Types ¶
This section is empty.