mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-18 08:55:41 +00:00
Adds a new Markdown-only flag --omd-aligned (alias --omarkdown-aligned) that left-justifies cells and pads each column to a uniform width. The rendered table is unaffected; the goal is readability of the raw markdown source. The flag implies --omd, so users do not need to pass both. Implementation batches records by schema (like pprint), computes max column widths, then emits header / separator / data rows with bars vertically aligned. Default markdown writer behavior is unchanged. |
||
|---|---|---|
| .. | ||
| doc.go | ||
| errors.go | ||
| flag_types.go | ||
| flatten_unflatten.go | ||
| mlrcli_util.go | ||
| option_parse.go | ||
| option_types.go | ||
| README.md | ||
| separators.go | ||
| verb_utils.go | ||
Datatypes for parsing the Miller command line, and the flags table.
pkg/climainis the flag-parsing logic for supporting Miller's command-line interface. When you type something likemlr --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 ofputthenfilter, and a JSON record-writer.pkg/clicontains datatypes and the flags table for the CLI-parser, which was split out to avoid a Go package-import cycle.