11 comments

[ 4.7 ms ] story [ 34.6 ms ] thread
Nice project! So it provides first-class support for bash (like arrays etc).

There is also another way; we can convert toml to json via `rq` and query/filter with `jq`:

  curl -s 'https://raw.githubusercontent.com/snyball/tombl/master/Cargo.toml' \
          | rq -t \
          | jq '.package.name + " version is : " + .package.version'
Cool, didn't know about `rq`. Converting everything to json and using `jq` has been my goto for structural data-hacks on the command line, but yeah for my own usage of `tombl` the killer feature was getting a bash array out of the config.
(comment deleted)
tomlq would've been a nicer name!
Or Bombadil (Bombadill? Bomb-a-dill?)
Actually I wanted exactly something like that with the bash export function. Well done