You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
internal/vehiclegen (#355) is the only generator without a command. Add cmd/vehiclegen under the internal/cli conventions:
Records to stdout, everything else stderr; cli.Fatalf exit 2 on bad input; cli.Notef for true-but-empty.
Seed drawn/reported via cli.Roller + deferred reportSeed only after flags validate; cli.RejectUnusable for flags the chosen path cannot read (mirror shipgen's split: explicit design flags vs a random roll that reads none of them).
Design flags mapping to Spec (category, type, mission, motive, enhancers, endurance class) plus -n/-seed; Generate for the random path (already constrained to legal combos per Notes G/B).
clitest end-to-end coverage including AssertReportedSeed/AssertRejected, per the standing obligation that every command has a test that fails if the seed report is dropped.
internal/vehiclegen(#355) is the only generator without a command. Addcmd/vehiclegenunder theinternal/cliconventions:cli.Fatalfexit 2 on bad input;cli.Noteffor true-but-empty.cli.Roller+ deferredreportSeedonly after flags validate;cli.RejectUnusablefor flags the chosen path cannot read (mirrorshipgen's split: explicit design flags vs a random roll that reads none of them).Spec(category, type, mission, motive, enhancers, endurance class) plus-n/-seed;Generatefor the random path (already constrained to legal combos per Notes G/B).clitestend-to-end coverage includingAssertReportedSeed/AssertRejected, per the standing obligation that every command has a test that fails if the seed report is dropped.Book: B3 pp.150-153. Depends on: nothing.