miller/pkg/cli
John Kerl 3b9f169162
Support -o jsonl as well as --ojsonl (#1879)
* `mlr sort -b` feature

* mlr regtest -p test/cases/cli-help && make dev

* Support `-o jsonl` as well as `--ojsonl`
2025-09-02 16:47:19 -04:00
..
doc.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
flag_types.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00
flatten_unflatten.go Misc. codespell findings (#1628) 2024-08-25 17:40:57 -04:00
mlrcli_util.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
option_parse.go Support -o jsonl as well as --ojsonl (#1879) 2025-09-02 16:47:19 -04:00
option_types.go DKVP --incr-key option (#1839) 2025-07-20 17:05:24 -04:00
README.md Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
separators.go RS aliases for ASCII top-of-table control characters are misnamed (#1620) 2024-08-16 10:25:25 -04:00
verb_utils.go The package version must match the major tag version (#1654) 2024-09-20 12:10:11 -04:00

Datatypes for parsing the Miller command line, and the flags table.

  • pkg/climain is the flag-parsing logic for supporting Miller's command-line interface. When you type something like mlr --icsv --ojson put '$sum = $a + $b' then filter '$sum > 1000' myfile.csv, it's the CLI parser which makes it possible for Miller to construct a CSV record-reader, a transformer chain of put then filter, and a JSON record-writer.
  • pkg/cli contains datatypes and the flags table for the CLI-parser, which was split out to avoid a Go package-import cycle.