RTOML
command line toml file parser written in rust
Usage
can be called on the command line after installation with rtoml
the first positional argument should be a file and the second should be the key in dot notation
Examples
if the toml file has the following content:
= "foo"
= [
"1",
"2",
"3",
]
[]
= "bar"
[]
= "space"
the following can be accessed by the following commands
rtoml <filename> value1
rtoml <filename> table.value2
for arrays each value will be printed on a separate newline, therefore the command
rtoml <filename> array_value
will produce the output
1
2
3
spaces in table and value names are also supported as long as the entire passed value is quoted like so
rtoml <filename> "table with spaces.value with spaces"
Installation
cargo install rtoml-cli
precompiled binaries are also available on github if rust is not installed on the computer