Expand description
add <module>: a module of the game’s engine turned on (ADR-0009
§6). It:
- turns on the module’s feature of the
shuyicrate in the game’sCargo.toml, keeping its layout (catalog::turn_on); - copies the module’s skill into the game’s skills (
.claude/skills), if the game keeps them (catalog::copy_skill); - gives the first paragraph of the module’s README: what it is for;
- says so when the game already has one of its alternatives on, with
the README’s section on using both (
BESIDE); - gives the line to add when the game’s code never installs the
modules it turns on (
shuyi::enabled_modules), and the line for the game’sformats()when the module adds formats.
Run twice, the second run changes nothing and says so (changed: false). A name that is no module of the engine fails with
codes::UNKNOWN_MODULE and the names there are.
Structs§
Constants§
- BESIDE
- The anchor of a module README’s section on sitting beside its
alternatives, and moving between them (its fifth, ADR-0009 §4):
## Beside its alternatives.
Functions§
- add
addon the game ofproject, in the engine it builds with.- add_in
addon the game atgame, with the engine’scatalog.- parse_
args - Reads
add’s arguments (not--json). - text
- What
adddid, for people. - usage
add’s usage.