Over the past several versions of WSLC, changes have been made to the CLI to make its output better match the output from the Docker CLI. It's understandable for the sake of compatibility...but Docker's CLI output is confusing and difficult to parse programmatically.
I propose an option to pass to --format that outputs much more structured JSON--also, as true JSON, not JSON lines (aka NDJSON aka JSONL).
I don't have any great suggestions for naming. The first thing that comes to mind is --format realjson but that's not great either 😄
Having a new format option does not break compatibility with existing consumers, but new consumers can take advantage of the better output format.
It's not mandatory by any means, since the primary consumer is other applications, but having the JSON be formatted (i.e. with whitespace) would be nice too.
Over the past several versions of WSLC, changes have been made to the CLI to make its output better match the output from the Docker CLI. It's understandable for the sake of compatibility...but Docker's CLI output is confusing and difficult to parse programmatically.
I propose an option to pass to
--formatthat outputs much more structured JSON--also, as true JSON, not JSON lines (aka NDJSON aka JSONL).I don't have any great suggestions for naming. The first thing that comes to mind is
--format realjsonbut that's not great either 😄Having a new format option does not break compatibility with existing consumers, but new consumers can take advantage of the better output format.
It's not mandatory by any means, since the primary consumer is other applications, but having the JSON be formatted (i.e. with whitespace) would be nice too.