Rename the CLI crate and executable to cli

This commit is contained in:
2026-12-03 04:30:27 +08:00
parent 763b46f43e
commit c0b8a0f229
7 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -10,7 +10,7 @@
|---|---|
| [matching](crates/matching/README.md) | 常驻内存盘口、集合竞价与连续撮合 |
| [exchange](crates/exchange/README.md) | 事务、幂等、账户、市场和兑付 |
| [eventbook-cli](crates/eventbook-cli/README.md) | JSON 行式命令入口 |
| [cli](crates/cli/README.md) | JSON 行式命令入口 |
每个 crate 的 README 包含文件依赖图和运行时序图。
@@ -19,7 +19,7 @@
在仓库根目录执行以下示例,每次演示使用一份新的数据库。程序从标准输入逐行接收 JSON,逐行返回结果。模拟货币的单位为分,每对 YES/NO 足额抵押 100 分。
```sh
cargo run --locked -p eventbook-cli -- demo.db <<'ORDERS'
cargo run --locked -p cli -- demo.db <<'ORDERS'
{"id":"1","op":"fund","account":"seller","cents":1000}
{"id":"2","op":"fund","account":"buyer","cents":1000}
{"id":"3","op":"list","market":"game-1","rules":"按比赛官方终局结果判定,主队胜为 YES,其余为 NO,作废每边兑付 50 分"}