- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for AddRow (0.06 sec)
-
istioctl/pkg/writer/table/writer_test.go
o := obj.(testObject) return Row{ Cells: []Cell{ NewCell(o.name), NewCell(o.namespace, color.FgGreen), NewCell(o.version), }, } }) w.AddRow(newTestObject("foo", "bar", "1.0")) w.AddRow(newTestObject("baz", "qux", "2.0")) w.AddRow(newTestObject("qux", "quux", "3")) w.Flush() expected := "NAME NAMESPACE VERSION\n" + "foo \x1b[32mbar\x1b[0m 1.0\n" +
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Oct 08 04:41:42 UTC 2022 - 1.6K bytes - Viewed (0) -
istioctl/pkg/writer/table/writer.go
func (c *ColoredTableWriter) AddHeader(names ...string) { cells := make([]Cell, 0) for _, name := range names { cells = append(cells, NewCell(name)) } c.header = Row{Cells: cells} } func (c *ColoredTableWriter) AddRow(obj interface{}) { c.rows = append(c.rows, c.addRowFunc(obj)) } func (c *ColoredTableWriter) Flush() { output := c.getTableOutput(c.rows) if len(output) == 0 { return } sep := getMaxWidths(output)
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 06 09:43:25 UTC 2024 - 2.7K bytes - Viewed (0) -
istioctl/pkg/checkinject/checkinject.go
return row }) w.AddHeader("WEBHOOK", "REVISION", "INJECTED", "REASON") injectedTotal := 0 for _, ws := range was { if ws.Injected { injectedTotal++ } w.AddRow(ws) } w.Flush() if injectedTotal > 1 { fmt.Fprintf(writer, "ERROR: multiple webhooks will inject, which can lead to errors") } return nil } type webhookAnalysis struct { Name string
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Sat Apr 13 05:23:38 UTC 2024 - 9.3K bytes - Viewed (0)