-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1290 from srenatus/sr/readme/jo
[jo] add README.md
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# jo | ||
|
||
This package provides the jo binary. | ||
|
||
[jo](https://github.com/jpmens/jo) is a utility to create JSON objects on the | ||
command line. | ||
|
||
## Maintainers | ||
|
||
The Habitat Maintainers humans@habitat.sh | ||
|
||
## Type of Package | ||
|
||
[binary wrapper package](https://www.habitat.sh/docs/best-practices/#binary-wrapper-packages) | ||
|
||
## Usage | ||
|
||
``` | ||
$ hab pkg install core/jo | ||
$ hab pkg binlink core/jo | ||
$ jo -h | ||
Usage: jo [-a] [-B] [-p] [-v] [-V] [word...] | ||
word is key=value or key@value | ||
-a creates an array of words | ||
-B disable boolean true/false | ||
-p pretty-prints JSON on output | ||
-v show version | ||
-V show version in JSON jo | ||
$ jo -p foo=bar baz=$(jo -a x y z) true@1 | ||
{ | ||
"foo": "bar", | ||
"baz": [ | ||
"x", | ||
"y", | ||
"z" | ||
], | ||
"true": true | ||
} | ||
``` |