3 个版本 (破坏性更改)
| 0.3.0 | 2023年8月8日 |
|---|---|
| 0.2.0 | 2023年8月5日 |
| 0.1.0 | 2023年8月5日 |
#43 在 #editing
9KB
168 行
tomlpipe
用于编辑 TOML 配置文件的 CLI 工具。
安装
cargo install tomlpipe
待办事项
tomlpipe覆盖
- 标准输入或
--in <file>接收基础 toml -
--override-toml <file>传递要覆盖的 toml -
--override-toml-dot <toml-dot>=<val>foo.bar=baz -
--override-toml-dot-type <type>(默认:String)Stringintbool
如何使用
tomlpipe override --override-toml sample_override.toml < sample_base.toml
sample_base.toml
# aaa
aaa = "bbb"
[a.b.c]
d = true
sample_override.toml
[a.b.c]
d = false
输出
# aaa
aaa = "bbb"
[a.b.c]
d = false
依赖关系
~4MB
~75K SLoC