3 releases (breaking)

0.3.0 Aug 8, 2023
0.2.0 Aug 5, 2023
0.1.0 Aug 5, 2023

#37 in #editing

40 downloads per month

MIT license

9KB
168 lines

tomlpipe

A CLI tool to edit TOML config file.

Install

cargo install tomlpipe

TODO

tomlpipe override

  • 標準入力 or --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

How to use

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

Dependencies

~4MB
~76K SLoC