fn: sgnd_dt_print_table
Purpose
Render table rows with an aligned heading and themed colors.
Description
By default colors come from SGND_DT_HEADERLINE_CLR, SGND_DT_COLUMNNAME_CLR and SGND_DT_DATACOLOR_CLR with legacy palette fallbacks. Explicit color arguments override both header roles or the data role.
Arguments
$1— Schema.$2— Name of table array.$3— Optional prettyprint flag (0 or 1; retained for compatibility).$4— Optional header color override (heading and both rules).$5— Optional data color override.$6— Optional maximum number of rows.
Output
Writes an aligned table to stdout.
Returns
- 0 after rendering; 1 for an invalid schema.
Usage
rows=("Ada|admin" "Lin|viewer")
sgnd_dt_print_table "name|role" rows
