-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More package information in Cargo.toml
- Loading branch information
1 parent
2460797
commit 133a801
Showing
3 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,19 @@ | ||
[package] | ||
name = "yj" | ||
version = "0.7.7" | ||
version = "0.7.8" | ||
authors = ["Bruce Adams <[email protected]>"] | ||
edition = "2018" | ||
|
||
categories = ["command-line-utilities"] | ||
description = "Command line tool that converts YAML to JSON" | ||
license = "Apache-2.0" | ||
edition = "2018" | ||
homepage = "https://github.com/bruceadams/yj" | ||
keywords = ["json", "yaml"] | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/bruceadams/yj" | ||
|
||
[badges] | ||
travis-ci = { repository = "bruceadams/yj" } | ||
|
||
[dependencies] | ||
failure = "0.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,30 +9,24 @@ Simple command line tool to convert a YAML input file into a JSON output file. | |
|
||
```bash | ||
$ yj --help | ||
yj 0.4.0 | ||
yj 0.7.8 | ||
Bruce Adams <[email protected]> | ||
Read YAML, write JSON | ||
|
||
USAGE: | ||
yj [FLAGS] [OPTIONS] [input] | ||
yj.exe [FLAGS] [OPTIONS] [input] | ||
|
||
FLAGS: | ||
-c, --compact Use compact formatting for the JSON output. | ||
-h, --help Prints help information | ||
-j, --json Parse the input as JSON. For more use cases, | ||
this option makes no difference. Valid JSON is | ||
valid YAML, so JSON input will (should?) parse | ||
correctly even when being handled with the | ||
YAML parser. Use this option when you want | ||
failure (instead of weird results) when the | ||
input is invalid JSON. | ||
-j, --json Parse the input as JSON. For most use cases, this option makes no difference. Valid JSON is valid | ||
YAML, so JSON input will (should?) parse correctly even when being handled with the YAML parser. | ||
Use this option when you want failure (instead of weird results) when the input is invalid JSON. | ||
-V, --version Prints version information | ||
-y, --yaml Format the output as YAML instead of JSON. | ||
|
||
OPTIONS: | ||
-o, --output <output> | ||
Output file name for the JSON. Defaults to stdout. | ||
|
||
-o, --output <output> Output file name for the JSON. Defaults to stdout. | ||
|
||
ARGS: | ||
<input> Input YAML file name. Defaults to stdin. | ||
|