gjo

command module
v0.0.0-...-15ee8be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2020 License: MIT Imports: 7 Imported by: 0

README

gjo

GitHub Actions status CircleCI Go Report Card

Small utility to create JSON objects.
This was inspired by jpmens/jo.

sreenshot

Support OS

  • Mac
  • Linux
  • Windows

Requirements

  • Go 1.1.14~
  • Git

Installtion

Build
$ git clone https://github.com/skanehira/gjo.git
$ cd gjo
$ GO111MODULE=on go install
Binary

Please download from releases

Usage

Mac and Linux
$ gjo -p status=$(gjo name=gorilla age=26 lang=$(gjo -a Go Java PHP))
{
    "status": {
        "age": 26,
        "lang": [
            "Go",
            "Java",
            "PHP"
        ],
        "name": "gorilla"
    }
}
$ gjo -h
Usage of gjo:
  -a    creates an array of words
  -p    pretty-prints
  -v    show version
Windows

If you want to use $() on the Windows, please install shellwrap.

shellwrap gjo -p status=$(gjo name=gorilla age=26)

Author

gorilla0513

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL