-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Milestone
Description
In Zonemaster::CLI, different command-line options can cause the printing of one or more tables with data. However, the code responsible for displaying the tables is duplicated several times inside the module.
For the sake of maintainability, it would be better if all of this code was factored away into a separate function that can be called whenever a table needs to be printed. This function should provide for the following features:
- The function shall translate the table headers according to the selected locale;
- The function shall support two modes of operation: one that displays the table incrementally (e.g. when displaying messages during a test run, which currently appear as soon as they are reported) and one that displays the table in one go;
- The function shall compute each columns’ widths according to the width of the header and, unless in incremental mode, the longest string in the column’s contents.
Metadata
Metadata
Assignees
Labels
No labels