Skip to content

Commit ab7e2a1

Browse files
authored
feat(cli): add colorized output and improved formatting (#101)
* feat(cli): add colorized output and improved formatting - Add colored output for different message types (errors red, success green, warnings yellow) - Improve table formatting for SELECT results using comfy-table - Add progress indicators for long operations using indicatif - Add --json output format option via clap - Improve help messages with ASCII banner and organized command reference Closes #92 * fix(cli): address CodeRabbit review feedback - Use env!(CARGO_PKG_VERSION) instead of hardcoded version string - Fix double backslash in ASCII art banner - Handle NaN/Infinity floats safely in JSON output - Use unwrap_or_else for JSON serialization to prevent panics - Insert null for missing column values in JSON output - Use strip_prefix for safer string slicing (avoids byte offset issues) * fix(cli): address remaining CodeRabbit review feedback - Handle EOF on stdin to prevent infinite loop when piped - Implement Display trait for Value to deduplicate format_value - Use serde_json for safe JSON error fallback (proper escaping) - Support case-insensitive ASK/EXPLAIN command matching Signed-off-by: hargunsiingh <hsnarang45@gmail.com> * style(cli): fix rustfmt formatting --------- Signed-off-by: hargunsiingh <hsnarang45@gmail.com>
1 parent ce5b17a commit ab7e2a1

5 files changed

Lines changed: 775 additions & 49 deletions

File tree

0 commit comments

Comments
 (0)