A CLI tool to edit TOML config file.
sh
cargo install tomlpipe
tomlpipe override
--in <file>
でベースとなる toml を受け取る--override-toml <file>
上書きする toml を渡す--override-toml-dot <toml-dot>=<val>
foo.bar=baz
--override-toml-dot-type <type>
(default: String
)
String
int
bool
sh
tomlpipe override --override-toml sample_override.toml < sample_base.toml
sample_base.toml
```toml
aaa = "bbb"
[a.b.c] d = true ```
sample_override.toml
toml
[a.b.c]
d = false
output
```toml
aaa = "bbb"
[a.b.c] d = false ```