MCPcopy Create free account
hub / github.com/driangle/taskmd / AddRow

Method AddRow

apps/cli/internal/cli/tablewriter.go:41–43  ·  view source on GitHub ↗

AddRow adds a data row. plain holds the visible text for width calculation; colored holds the text to render (may contain ANSI codes).

(plain, colored []string)

Source from the content-addressed store, hash-verified

39// AddRow adds a data row. plain holds the visible text for width calculation;
40// colored holds the text to render (may contain ANSI codes).
41func (tw *TableWriter) AddRow(plain, colored []string) {
42 tw.rows = append(tw.rows, tableRow{plain: plain, colored: colored})
43}
44
45// Flush computes column widths and writes all rows to w.
46func (tw *TableWriter) Flush(w io.Writer) {

Callers 15

outputNextTableFunction · 0.95
outputTagsTableFunction · 0.95
outputTracksTableFunction · 0.95
outputProjectsTableFunction · 0.95
outputStatsTableFunction · 0.95
outputSearchTableFunction · 0.95

Calls

no outgoing calls