mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Introduce a new command-line option --format FORMAT to control the output format of lshwc. Supported formats include CSV, JSON, JSON-SEQ, and key-value PAIRS. The output is now generated using the shared util_fmt infrastructure, enabling consistent and machine-readable output. This change also includes: - Label generation for counters - Integration of util_fmt for structured formatting - Updated man page with documentation for the new option - Updated man page with JSON output structure documentation - Add option (-q) to force quoting all elements. Reference: https://www.ietf.org/rfc/rfc4180.txt Signed-off-by: Jan Polensky <japo@linux.ibm.com> Reviewed-by: Thomas Richter <tmricht@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>