Answer prose round 1: the custom-CLI test advice says why an indexed module needs each path rendered, the help ruling says the help points to --list and who ruled, ErrNoColumns's doc says what it matches, and the filed items read in one pass

This commit is contained in:
2026-10-11 23:34:37 +02:00
committed by Lillem4n
parent 5e6330c75b
commit 71b0754679
8 changed files with 21 additions and 22 deletions
+2 -3
View File
@@ -209,11 +209,10 @@ func (f *Generator) FakeRecordTemplate(input string) (*Record, error) {
return t.Fake(), nil
}
// ErrNoColumns is a record fence a path can answer, so its entry point names the record to
// write instead.
// ErrNoColumns matches the error for a record with no fields; FakeRecord's names the
// one-column record to write instead.
var ErrNoColumns = errors.New("has no fields, so no columns")
// errChoiceRecord is the other fence a path can answer.
var errChoiceRecord = errors.New("names a choice, not a template; a record is a template whose fields are its columns")
// recordOf is the record template n is; settleRecords fixed its columns at load.