4 个版本
0.1.3 | 2021 年 8 月 13 日 |
---|---|
0.1.2 | 2021 年 8 月 12 日 |
0.1.1 | 2021 年 8 月 12 日 |
0.1.0 | 2021 年 8 月 12 日 |
#1270 在 文本处理
7KB
121 行

仲裁员
根据一组规则和正则表达式格式化文本。
安装
cargo install arbitrator
用法
example.txt
This is one of my paintings.
Wow thats really cool.
Thank you!
example.json
{
"paintings": "cool {} nice",
"cool": "{} {}"
}
示例命令
arbitrator --input example.txt --rules example.json --output output.txt
output.txt
cool This is one of my paintings. nice
Wow thats really cool. Thank you!
依赖项
~5–7MB
~126K SLoC