cpt
cpt copied to clipboard
Use a better table generating package
Problem related to feature request
The currently used table package is severely lacking and not sufficient for the project needs. Formatting is difficult and wrapping is extremely buggy.
Other table packages aren't suited either (some lack core features and some are too complex for the usecase).
Feature proposal to be implemented
Create a custom table package with the following features:
- Aligning text (left, center and right) in individual table columns.
- Rich formatting of cells (use fatih/color as back end)
- Text wrapping of long text in cells.
- Custom widths (wrap/overflow text that exceeds threshold) per column of table.
Alternatives in use
The package olekukonko/tablewriter contains many of the desired features, but is overly complicated and requires tedious amounts of coding to setup.