miller/internal/pkg/cli
John Kerl 8f04d7671d
Restore --tsvlite (#984)
* Restore --tsvlite flag

* todo

* doc-build artifacts

* doc note on --tsv vs --tsvlite and backslashed data
2022-03-15 09:01:20 -04:00
..
doc.go Standardize Go-package structure (#746) 2021-11-11 14:15:13 -05:00
flag_types.go Approximate-match feature for online help (#754) 2021-11-17 23:37:48 -05:00
flatten_unflatten.go Standardize Go-package structure (#746) 2021-11-11 14:15:13 -05:00
mlrcli_util.go Make --ifs-regex and --ips-regex explicit command-line flags (#799) 2021-12-25 00:00:18 -05:00
option_parse.go Restore --tsvlite (#984) 2022-03-15 09:01:20 -04:00
option_types.go New --lazy-quotes flag for helping with malformed CSV (#925) 2022-02-06 01:05:35 -05:00
README.md Standardize Go-package structure (#746) 2021-11-11 14:15:13 -05:00
separators.go Make TSV finally true TSV (#923) 2022-02-06 00:13:55 -05:00
verb_utils.go Use int64 wherever "64-bit integer" is assumed (#902) 2022-01-27 12:06:25 -05:00

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

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