json-pprint

module
v2.0.0-...-393756c Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT

README

json-pprint

CLI that will pretty print Json. Served as a small project to learn Golang basics.

Installing

Make sure $GOPATH/bin is in your $PATH, otherwise just add it to your path. If $GOPATH is empty, you can retrieve the value like so go env | grep GOPATH

Run cd json-pprint && go install, you should now be able to use the CLI, see how to use it below.

Usage

NAME:
   json-pprint - Json to pretty print

USAGE:
   json-pprint [global options] command [command options] [arguments...]

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --write, -w             write result to file instead of stdout, by default overwrites source file (default: false)
   --spaces, -s            use 2 spaces instead of tab (default: false)
   --file value, -f value  file to read JSON from
   --out value, -o value   output file for result
   --help, -h              show help

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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