arvindKandpal-ksolves opened a new pull request, #4750: URL: https://github.com/apache/cassandra/pull/4750
Enhance CQLSH to support machine-readable output formatting (csv, json) Currently, `cqlsh` output formatting provides tabular formatting designed for human readability, which complicates machine processing in automated pipelines. This patch introduces a `--mode` argument to switch between output formats. Changes included in this patch: * Added `--mode` argument supporting `tabular`, `csv`, and `json` formats. * Retained `tabular` as the default mode to ensure no breaking changes for existing users. * Disabled ANSI color codes and extra footer text (like `(X rows)`) when `csv` or `json` mode is selected to ensure purely machine-readable output. * [cite_start]Updated `cqlsh.adoc` documentation and `cqlshrc.sample` configuration file[cite: 1, 2]. * [cite_start]Added unit tests in `test_cqlsh_output.py` to verify both CSV and JSON formats[cite: 1, 2]. patch by Arvind Kandpal; reviewed by <Reviewers> for CASSANDRA-19985 The [Cassandra Jira](CASSANDRA-19985) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

