Crates.io | tojson |
lib.rs | tojson |
version | 0.3.2 |
source | src |
created_at | 2020-05-27 05:57:39.386146 |
updated_at | 2020-09-23 13:21:09.782502 |
description | Convert between toml, yaml and json |
homepage | https://github.com/meain/tojson |
repository | https://github.com/meain/tojson |
max_upload_size | |
id | 246558 |
size | 17,369 |
Convert between yaml, toml and json
brew install meain/meain/tojson
cargo install tojson
git clone git@github.com:meain/tojson.git
cd tojson && cargo install --force --path .
USAGE:
tojson [FLAGS] [OPTIONS] [filename]
FLAGS:
-h, --help Prints help information
-p, --pretty
-V, --version Prints version information
OPTIONS:
-f, --from <from> [default: auto] [possible values: auto, yaml, toml, json]
-t, --to <to> [default: json] [possible values: json, yaml, toml]
ARGS:
<filename>
tojson Cargo.toml | jq -r '.package.version'