Documentation
¶
Overview ¶
Command hexforge authors the cast the battles are fought with, from flags and prompts.
It is a reader, a prompt and a writer, nothing more. Every rule about what a character may be lives in internal/core/cast, and the authoring logic that sequences those rules — loading the books, turning answers into a character, writing the file back — lives in internal/forge. This binary validates by calling those, rather than by knowing anything itself: the same relationship cmd/hexarena has with the event log. If a check belongs anywhere, it belongs in the parser, because the parser is what the game runs through at boot and this tool is not.
It is flags and a line-oriented prompt on purpose, which is what makes it the front-end a script and a pipe use. cmd/hexforge-tui is the same authoring logic behind a full-screen program, and a full-screen program cannot run with stdin as a pipe. Neither front-end restates a rule the other has: both go through internal/forge.