diff --git a/cmd/tabulate.go b/cmd/tabulate.go index ca4fa79..0010afa 100644 --- a/cmd/tabulate.go +++ b/cmd/tabulate.go @@ -51,6 +51,7 @@ func tabulateFunction(c *cli.Context) error { } writer.WriteRow(1+idx, rowVals...) } + writer.InnerWriter().WriteForLine(1+len(rows), GetReadFileString()) }) fmt.Fprintf(os.Stderr, "Rows: %s; Cols: %s\n", diff --git a/pkg/multiterm/table.go b/pkg/multiterm/table.go index 6a79a4c..2fe82a4 100644 --- a/pkg/multiterm/table.go +++ b/pkg/multiterm/table.go @@ -30,6 +30,10 @@ func NewTable(maxCols, maxRows int) *TableWriter { } } +func (s *TableWriter) InnerWriter() *TermWriter { + return s.term +} + func (s *TableWriter) WriteRow(rowNum int, cols ...string) { if rowNum >= s.maxRows { return