Liking cljdoc? Tell your friends :D

clj-string-layout.cli

Command-line entry point for formatting CSV, TSV, or whitespace input.

Command-line entry point for formatting CSV, TSV, or whitespace input.
raw docstring

-mainclj

(-main & args)
source

parse-argsclj

(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.
sourceraw docstring

parse-csvclj

(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.
sourceraw docstring

parse-inputclj

(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.
sourceraw docstring

renderclj

(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.
sourceraw docstring

usageclj

(usage)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close