Skip to content

create a uniform approach for CSV output #3086

@simsong

Description

@simsong

The problem with #3072 is that it modifies every output line with an if (csv) to get csv output. This is tedious and error-prone. A better approach would be to have a new formatted printf() that extracts the format statements and outputs in CSV format if a format is set, otherwise uses the full format information.

  • Implement a unified formatter that either outputs in CSV format or using the format string.
  • Adopt Jgru add csv output to mmls #3072 to use it.
  • Add a test for both formatted output and CSV output for mmls.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions