miller/go/src/cli
John Kerl abe061e408
Flags lookup-table and doc autogen (#655)
* Tableize flag-parsing for on-line help, doc autogen, etc.

* Rename cli,cliutil packages -> climain,cli

* stub for new flag-list page

* Fix alignment & formatting for webdoc/manpage autogen

* per-flag-section info in mlr help

* Fix comparison of actual vs expected stderr file in regtest

* Replace old flag-parser with new
2021-09-08 22:16:40 -04:00
..
flag_types.go Flags lookup-table and doc autogen (#655) 2021-09-08 22:16:40 -04:00
flatten_unflatten.go Flags lookup-table and doc autogen (#655) 2021-09-08 22:16:40 -04:00
mlrcli_util.go Flags lookup-table and doc autogen (#655) 2021-09-08 22:16:40 -04:00
option_parse.go Flags lookup-table and doc autogen (#655) 2021-09-08 22:16:40 -04:00
option_types.go Flags lookup-table and doc autogen (#655) 2021-09-08 22:16:40 -04:00
README.md Flags lookup-table and doc autogen (#655) 2021-09-08 22:16:40 -04:00
verb_utils.go Flags lookup-table and doc autogen (#655) 2021-09-08 22:16:40 -04:00

Datatypes for parsing the Miller command line.

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