2.7.0 Print the SQL query results to STDOUT, implement --logLevel
OndraZizka
released this
03 Sep 15:29
·
97 commits
to master
since this release
For any CLI tool, it's a bit weird not to allow printing the output to the standard output. CSV Cruncher is no exception.
Now, the -out
option may take -
(minus) as a value, directing the CSV data (SQL query result) to STDOUT:
crunch -in chatgpt-alternatives.csv -out - -sql 'SELECT name FROM chatgpt-alternatives WHERE monthlyPrice < 10'
For now, the output is mixed with the logging output, since CSV Cruncher is still freshly out of prototype phase (after 13 years :) )
However, that can be neglected by turning off the logging:
crunch --logLevel OFF ...
Setting the log level should have worked since 2.4.0, but somehow, the implementation slipped out of that version.
Both features will be improved in the further versions, as poor UX has been identified as the main hindrance of user adoption.