#toml #print #console #terminal #cli

app tomlcli

Pretty print and query TOML files

2 unstable releases

Uses old Rust 2015

0.2.0 Jun 6, 2018
0.1.0 Jan 21, 2018

#163 in #print

30 downloads per month

MIT license

11KB
204 lines

tomlcli

Crates.io Crates.io

Pretty print and query TOML files

asciicast

How to use

cargo install tomlcli

Next use toml or tomlcli binary.

# Pretty print contents of file
toml Cargo.toml

# Pretty print table
toml Cargo.toml package

# Print value in table
toml Cargo.toml package.name

# Print value in array
toml Cargo.toml package.keywords.0

# Print table in array
toml Cargo.lock package.0

# Print value in table in array
toml Cargo.lock package.0.name

Todo

  1. Pretty print table in field:
[[bin]]
name = "foo"
path = "./bar.rs"
  1. Query fields with dot:
[example]
"foo.bar" = "example"

License

Copyright (c) Sergey Sova. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for details.

Dependencies

~0.7–9.5MB
~66K SLoC