miller/pkg/cli
2024-06-08 20:58:26 -04:00
..
doc.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
flag_types.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
flatten_unflatten.go Be smarter about auto-unflatten (#1584) 2024-06-08 20:58:26 -04:00
mlrcli_util.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
option_parse.go Support $NO_COLOR (#1580) 2024-06-08 13:08:15 -04:00
option_types.go Fix typo in online help for --no-jlistwrap (#1541) 2024-04-11 08:12:45 -04:00
README.md Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
separators.go Miller produces no output on TSV with > 64K characters per line (#1505) 2024-02-25 15:50:50 -05:00
verb_utils.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -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.