Skip to content

S2a: TSV and NDJSON renderers #5

Closed

Description

@david-Darkcollective

Part of #17. Design: docs/design.md §3.3.

Scope

Two streaming renderers in the command's render/ package:

  • OutputFormat.TSV: IANA TSV with a header row. A tab, newline, carriage return or backslash inside a value is escaped as \t, \n, \r or \\, so a row is always one line, as cut, awk and sort expect.
  • OutputFormat.NDJSON: one JSON object per line, in the same value encoding the JSON format uses.

Both take a header option and a NULL spelling, which the command exposes as --no-header and --null.

Dependencies

Acceptance

  • Golden tests per format, covering every value type, escaping, NULL and nested values.
  • A streaming test shows the first row is written before the input ends.

Activity

  1. added
    area:cliThe relix command itself
    and removed
    area:consoleThe relix-console library
    on Oct 7, 2026
  2. added a commit that references this issue on Oct 8, 2026
    1965668
  3. github-actions commented on Oct 8, 2026

    @github-actions

    Done in #34, merged to develop (07435ac).

  4. added a commit that references this issue on Oct 12, 2026
    38096d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:cliThe relix command itselfbacklogNot yet scheduledenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions