Crates.io | tomlcli |
lib.rs | tomlcli |
version | 0.2.0 |
source | src |
created_at | 2018-01-21 23:28:36.331509 |
updated_at | 2018-06-06 12:29:09.585986 |
description | Pretty print and query TOML files |
homepage | https://github.com/sergeysova/tomlcli.rs |
repository | https://github.com/sergeysova/tomlcli.rs |
max_upload_size | |
id | 47724 |
size | 13,115 |
Pretty print and query TOML files
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
[[bin]]
name = "foo"
path = "./bar.rs"
[example]
"foo.bar" = "example"
Copyright (c) Sergey Sova. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for details.