mirror of
https://github.com/johnkerl/miller.git
synced 2026-07-18 00:45:47 +00:00
Implements the plan in plans/recutils.md, addressing #378. Adds a hand-rolled reader/writer pair (pkg/input/record_reader_rec.go, pkg/output/record_writer_rec.go) supporting recutils' blank-line-separated "Key: value" records, "+"-continuation and backslash-newline continuation, and generic comment handling, with recutils' %rec-descriptor schema layer left unspecialized since Miller has no schema-enforcement concept. Registers the format under the "recutils" name (--irecutils/--orecutils/ --recutils flags, matching the --idcf/--odcf/--dcf pattern) in the reader/writer factories and pkg/cli/separators.go, adds docs and a sample data file, and adds unit tests plus test/cases/io-recutils regression cases covering round-tripping, continuation lines, comments, and the hard-error behavior on malformed input. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| channel_writer.go | ||
| doc.go | ||
| file_output_handlers.go | ||
| README.md | ||
| record_writer.go | ||
| record_writer_csv.go | ||
| record_writer_csv_colorizer.go | ||
| record_writer_csv_test.go | ||
| record_writer_csvlite.go | ||
| record_writer_dcf.go | ||
| record_writer_dkvp.go | ||
| record_writer_dkvpx.go | ||
| record_writer_factory.go | ||
| record_writer_json_jsonl.go | ||
| record_writer_markdown.go | ||
| record_writer_nidx.go | ||
| record_writer_pprint.go | ||
| record_writer_rec.go | ||
| record_writer_tsv.go | ||
| record_writer_xtab.go | ||
| record_writer_yaml.go | ||
Logic for formatting output records as strings to standard output.
There is one record-writer type per supported output file format, and a factory method.