diff --git a/README.mkd b/README.mkd index fb0749b..fdfed80 100644 --- a/README.mkd +++ b/README.mkd @@ -187,18 +187,21 @@ Usage: Options: -u, --ungron Reverse the operation (turn assignments back into JSON) + -c, --colorize Colorize output (default on tty) -m, --monochrome Monochrome (don't colorize output) + -s, --stream Treat each line of input as a separate JSON object + -k, --insecure Disable certificate validation --no-sort Don't sort output (faster) --version Print version information Exit Codes: - 0 OK - 1 Failed to open file - 2 Failed to read input - 3 Failed to form statements - 4 Failed to fetch URL - 5 Failed to parse statements - 6 Failed to encode JSON + 0 OK + 1 Failed to open file + 2 Failed to read input + 3 Failed to form statements + 4 Failed to fetch URL + 5 Failed to parse statements + 6 Failed to encode JSON Examples: gron /tmp/apiresponse.json diff --git a/script/lint b/script/lint index 4ccdd5d..700198b 100755 --- a/script/lint +++ b/script/lint @@ -12,4 +12,6 @@ fi # dupl is disabled because it has a habbit of identifying tests as duplicated code. # in its defence: it's right. gocyclo is disabled because I'm a terrible programmer. -gometalinter --disable=gocyclo --disable=dupl --enable=misspell --enable=goimports +# gas is disabled because it doesn't like InsecureSkipVerify set to true for HTTP +# requests - but we only do that if the user asks for it. +gometalinter --disable=gocyclo --disable=dupl --enable=goimports --disable=gas