miller/go/src/cliutil
2021-02-15 12:44:42 -05:00
..
mlrcli_util.go go.mod attempt 2021-02-14 01:13:24 -05:00
option_parse.go pprint --right 2021-02-15 12:44:42 -05:00
option_types.go pprint --right 2021-02-15 12:44:42 -05:00
README.md more of same 2021-02-14 01:25:32 -05:00
verb_utils.go go.mod attempt 2021-02-14 01:13:24 -05:00

Datatypes for parsing the Miller command line.

  • src/cli 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.
  • src/cliutil contains datatypes for the CLI-parser, which was split out to avoid a Go package-import cycle.