Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColoredOutput ¶
func ColoredUnwrappedOutput ¶
func PrintJsonTable ¶
func PrintOutput ¶
PrintOutput prints output that is non-tabular format Depending on the input flags, it opens up a matrix of output options example json: [{"one":"01", "two":"02"},{"three":"03", "four":"04"}] -------------------+-------------------------------+------------------------------------------------------|
| --unwrap=true | --unwrap=false |
-------------------|-------------------------------|------------------------------------------------------| --compact=true | {"one":"01","two":"02"} | [{"one":"01","two":"02"},{"three":"03","four":"04"}] |
| {"three":"03","four":"04"} | |
-------------------|-------------------------------|------------------------------------------------------| --compact=false | { | [ |
| "one": "01", | { |
| "two": "02" | "one": "01", |
| } | "two": "02" |
| { | }, |
| "three": "03", | { |
| "four": "04" | "three": "03", |
| } | "four": "04" |
| | } |
| | ] |
-------------------+-------------------------------+------------------------------------------------------|