Skip to content

Commit

Permalink
Merge pull request #1290 from srenatus/sr/readme/jo
Browse files Browse the repository at this point in the history
[jo] add README.md
  • Loading branch information
nellshamrell authored Mar 29, 2018
2 parents 93206b8 + 8cbfa4d commit d182a9a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions jo/README.md
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
}
```

0 comments on commit d182a9a

Please sign in to comment.