miller/pkg/cli
John Kerl daae7ff7f0
Add DCF (Debian Control Format) as supported file type (#1970)
* reader

* record writer

* pkg/output/record_writer_dcf.go

* test/input/test.dcf

* test/cases/io-dcf/

* pkg/cli/option_parse.go

* make fmt

* make dev

* docs and `make dev`
2026-02-16 11:10:39 -05: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 Add DCF (Debian Control Format) as supported file type (#1970) 2026-02-16 11:10:39 -05:00
mlrcli_util.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
option_parse.go Add DCF (Debian Control Format) as supported file type (#1970) 2026-02-16 11:10:39 -05:00
option_types.go Support YAML I/O (#1963) 2026-02-15 09:24:38 -05:00
README.md Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
separators.go Add DCF (Debian Control Format) as supported file type (#1970) 2026-02-16 11:10:39 -05: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.