Lotus CLI commands currently use a variety of formats to output information. These commands are often used by operators in scripts where a whole bunch of string manipulations are required to get to desired output.
The proposal here is to introduce a top-level flag, --output where once set it affects the output format of all sub commands, with initial support for two formats: json and text.
This way, it would be much easier to programmatically use the lotus CLIs, e.g. via pipe to jq etc.
Lotus CLI commands currently use a variety of formats to output information. These commands are often used by operators in scripts where a whole bunch of string manipulations are required to get to desired output.
The proposal here is to introduce a top-level flag,
--output
where once set it affects the output format of all sub commands, with initial support for two formats:json
andtext
.This way, it would be much easier to programmatically use the lotus CLIs, e.g. via pipe to
jq
etc.