Crate bin_efo

Crate bin_efo 

Source
Expand description

§epoch_forge CLI

The command‑line interface for epoch_forge. It exposes a single binary efo that supports the following sub‑commands:

§Sub‑modules

  • epoch - switch / advance time
  • event - add / remove events
  • chr - add / remove characters
  • town - add / remove towns
  • blocker - add / remove blockers
  • calamity - add / remove calamities
  • link - add / remove links (alliances, wars, roads, etc.)

Each sub‑command is implemented in its own module under commands/. The main.rs file simply parses arguments with clap and dispatches to the appropriate handler. The handlers share a common World instance that they load from / persist to disk.

Each module exposes a handle function that receives the parsed arguments

Modules§

commands 🔒
commands module
error 🔒
General error type that the CLI propagates.
success 🔒
List of all success messages possible

Structs§

Cli 🔒
The root command-line parser for the efo binary.

Enums§

TopLevelCmd 🔒
Enumeration of the top-level sub-commands that efo accepts.

Functions§

exec_dispatch 🔒
Dispatches the parsed command to the appropriate handler.
main 🔒
Program entry point.