miller/pkg/cli
John Kerl af021f28d7
Support markdown format on input (#1478)
* Support markdown on input

* unit-test files

* doc mods

* Unit-test cases for I/O-format keystroke-savers

* -i/-o md as well as -i/-o markdown
2024-01-20 16:51:15 -05: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 Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
mlrcli_util.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
option_parse.go Support markdown format on input (#1478) 2024-01-20 16:51:15 -05:00
option_types.go Internal name-neatens (#1475) 2024-01-20 13:36:28 -05:00
README.md Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04:00
separators.go Export library code in pkg/ (#1391) 2023-09-10 17:15:13 -04: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.