internal/tablewriter: fix AppendBulk to not overwrite lines

This commit is contained in:
lightclient 2026-02-21 14:45:59 +00:00
parent c114886ebc
commit b236c5e916
No known key found for this signature in database
GPG key ID: 91289C7FE4ADADBD

View file

@ -58,12 +58,12 @@ func (t *Table) SetFooter(footer []string) {
t.footer = footer
}
// AppendBulk sets all data rows for the table at once, replacing any existing rows.
// AppendBulk appends one or more data rows to the table.
//
// Each row must have the same number of columns as the headers, or validation
// will fail during Render().
func (t *Table) AppendBulk(rows [][]string) {
t.rows = rows
t.rows = append(t.rows, rows...)
}
// Render outputs the complete table to the configured writer. The table is rendered