Documentation
¶
Overview ¶
Package jsonout lets a command print its result as one JSON document on stdout, for programs that run compa-kernel: the command's --json flag.
Index ¶
Constants ¶
View Source
const Flag = "json"
Flag is the name of the flag that asks for JSON.
View Source
const Usage = "Print the result as one JSON document"
Usage describes the flag in help.
Variables ¶
This section is empty.
Functions ¶
func InArgs ¶
InArgs reports whether args, the command line without the program, ask for --json. main decides with it what it does before the flags are parsed: whether to print the banner, and where the logs go.
func Progress ¶
Progress is where cmd writes prompts and progress: stdout, or stderr when stdout carries the JSON document.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.