abcd-gen-surface

command
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command abcd-gen-surface writes the three artefacts derived from one walk of the abcd command tree: the committed compatibility snapshot, the description of every plugin command page (each verb's sentence, itd-2609212113220149), and the generated appendix at the end of every brief surface chapter (itd-147). It is the write half of those drift-checked artefacts: `go generate ./internal/surface/cli` runs it to refresh .abcd/development/release/surface.json, the commands/*.md descriptions and the appendices under .abcd/development/brief/04-surfaces/, and tests (internal/surface/cli/surface_test.go, sentences_test.go, brief_appendix_test.go) fail the build if any ever diverges from the tree. It holds no rendering logic of its own — the walk, the encoding and the composition live in cli.GenerateSurface and cli.SurfaceChapters, so the generator and the drift tests render byte-for-byte identically. The snapshot is written first. A chapter that cannot be regenerated — its markers absent or malformed, or no register row naming it — is refused by name and left untouched, every other chapter is still written, and the run then exits 1 with each refusal, so a lane landing behind another never has its whole regeneration blocked by one chapter.

Jump to

Keyboard shortcuts

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