tomlcli

Crates.iotomlcli
lib.rstomlcli
version0.2.0
sourcesrc
created_at2018-01-21 23:28:36.331509
updated_at2018-06-06 12:29:09.585986
descriptionPretty print and query TOML files
homepagehttps://github.com/sergeysova/tomlcli.rs
repositoryhttps://github.com/sergeysova/tomlcli.rs
max_upload_size
id47724
size13,115
Sergey Sova (sergeysova)

documentation

https://docs.rs/tomlcli/

README

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.

Commit count: 12

cargo fmt