Crates.io | tomlpipe |
lib.rs | tomlpipe |
version | 0.3.0 |
source | src |
created_at | 2023-08-05 14:48:24.248154 |
updated_at | 2023-08-08 15:54:11.368591 |
description | CLI tool for editing a TOML file |
homepage | |
repository | https://github.com/pollenjp/tomlpipe |
max_upload_size | |
id | 936473 |
size | 26,450 |
A CLI tool to edit TOML config file.
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
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
output
# aaa
aaa = "bbb"
[a.b.c]
d = false