CLI¶
The CLI (rusty_runways_cli) is a REPL that wraps the core engine. It provides a simple DSL for inspecting state and issuing actions. Game rules and constraints are implemented in the Core.
Running¶
cargo run -p rusty_runways_cli -- --seed 1 --n 5 --c 650000
--seed and --n must be provided together; --c defaults to 650000.
Commands and Examples¶
Inspecting the world state
SHOW AIRPORTSSHOW AIRPORTS WITH ORDERSSHOW AIRPORTS <airport_id>— full details & ordersSHOW AIRPORTS <airport_id> WITH ORDERS— orders at that airportSHOW PLANES— player’s fleetSHOW PLANES <plane_id>— one plane (status, specs, manifest)SHOW DISTANCES <plane_id>— distances, fuel requirements, landing feasibility by airport
Purchases
BUY PLANE <Model> <airport_id>— buy and place an airplane at the airportSELL PLANE <plane_id>— sell a parked, empty plane for a 60% refund
Cargo handling
LOAD ORDER <order_id> ON <plane_id>— load a single order (+1h)LOAD ORDERS [<order_id>] ON <plane_id>— load multiple (+1h)UNLOAD ORDER <order_id> FROM <plane_id>— unload a single order (+1h)UNLOAD ORDERS [<order_id>] FROM <plane_id>— unload selected (+1h)UNLOAD ALL FROM <plane_id>— unload all (+1h)REFUEL PLANE <plane_id>— refuel (+1h)
Dispatch & movement
DEPART PLANE <plane_id> <destination_airport_id>— depart to destinationHOLD PLANE <plane_id>— remain parkedMAINTENANCE <plane_id>— routine maintenance (+1h)
Time control
ADVANCE <n>— advance bynhours (or until next event)
Queries
SHOW CASHSHOW TIMESHOW STATSSHOW MODELS— list all airplane models with specs table
Game
SAVE <game_name>— save gameLOAD <game_name>— load gameLOAD CONFIG <path.yaml>— rebuild game from a custom YAML worldEXIT— exit the REPL