Skip to content

Commit

Permalink
[jo] add README.md
Browse files Browse the repository at this point in the history
This is for #1252.

Signed-off-by: Stephan Renatus <srenatus@chef.io>
  • Loading branch information
srenatus committed Mar 29, 2018
1 parent 590a8b5 commit 8cbfa4d
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions jo/README.md
@@ -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 8cbfa4d

Please sign in to comment.