MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / PrintRows

Function PrintRows

pkg/output/table.go:43–49  ·  view source on GitHub ↗
(rows []*DataRow, w io.Writer)

Source from the content-addressed store, hash-verified

41}
42
43func PrintRows(rows []*DataRow, w io.Writer) {
44 t := NewTable(w)
45 for _, row := range rows {
46 t.AddRow(row.Name, row.Value)
47 }
48 t.Print()
49}
50
51func NewTable(writer io.Writer) Table {
52 width := defaultWidth

Callers 2

ViewRunFunction · 0.92

Calls 3

AddRowMethod · 0.95
PrintMethod · 0.95
NewTableFunction · 0.85

Tested by

no test coverage detected