Skip to content

elemantalcode/bjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bj

BASH Utility to create JSON objects.

Support OS

  • Linux

Requirements

  • Go 1.1.15

Installtion

Build

$ git clone https://github.com/elemantalcode/bj.git
$ cd bj
$ go install

Usage

$  bj -p network=$(bj cidr=10.0.0.0/8 subnet=$(bj -a 10.0.0.0/24 10.0.1.0/24 10.0.2.0/24))
{
    "network": {
        "cidr": "10.0.0.0/8",
        "subnet": [
            "10.0.0.0/24",
            "10.0.1.0/24",
            "10.0.2.0/24"
        ]
    }
}

$ bj -h
Usage of bj:
  -a    creates an array of words
  -p    pretty-prints
  -v    show version

About

BASH JSON object creator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published