0
0
forked from toolshed/abra

Partial implementation of machine readable output.

- Implement global flag for machine readable output.
- Add machine readable output (as JSON) to list command.
This commit is contained in:
2022-12-03 23:09:45 -08:00
committed by Gitea
parent 47f3d2638b
commit 82866cd213
2 changed files with 91 additions and 72 deletions

View File

@ -243,6 +243,16 @@ var DebugFlag = &cli.BoolFlag{
Usage: "Show DEBUG messages",
}
// MachineReadable stores the variable from MachineReadableFlag
var MachineReadable bool
// MachineReadableFlag turns on/off machine readable output where supported
var MachineReadableFlag = &cli.BoolFlag{
Name: "machine, m",
Destination: &MachineReadable,
Usage: "Output in a machine-readable format (where supported)",
}
// RC signifies the latest release candidate
var RC bool