Command-line entry point for formatting CSV, TSV, or whitespace input.
Command-line entry point for formatting CSV, TSV, or whitespace input.
(parse-args args)Parses CLI arguments into an options map.
This function is public so callers and tests can reuse the CLI argument behavior without invoking System/exit.
Parses CLI arguments into an options map. This function is public so callers and tests can reuse the CLI argument behavior without invoking System/exit.
(parse-csv text)Parses CSV text into row vectors.
Handles commas, CR/LF row separators, quoted fields, doubled quotes, and line breaks inside quoted fields. The parser is intentionally lenient about text after closing quotes so command-line use can handle imperfect CSV exports.
Parses CSV text into row vectors. Handles commas, CR/LF row separators, quoted fields, doubled quotes, and line breaks inside quoted fields. The parser is intentionally lenient about text after closing quotes so command-line use can handle imperfect CSV exports.
(parse-input input-format text)Parses input text according to input-format.
input-format must be one of :csv, :tsv, or :whitespace.
Parses input text according to input-format. input-format must be one of :csv, :tsv, or :whitespace.
(render {:keys [input format headers? escape?]
:or {input :csv format :plain escape? true}
:as options}
text)Renders parsed input text according to CLI-style options.
Options are the same keys returned by parse-args. Returns a vector of output lines and does not print or exit.
Renders parsed input text according to CLI-style options. Options are the same keys returned by parse-args. Returns a vector of output lines and does not print or exit.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |