MCPcopy Index your code
hub / github.com/coder/coder / Table

Function Table

cli/cliui/table.go:17–25  ·  view source on GitHub ↗

Table creates a new table with standardized styles.

()

Source from the content-addressed store, hash-verified

15
16// Table creates a new table with standardized styles.
17func Table() table.Writer {
18 tableWriter := table.NewWriter()
19 tableWriter.Style().Box.PaddingLeft = ""
20 tableWriter.Style().Box.PaddingRight = " "
21 tableWriter.Style().Options.DrawBorder = false
22 tableWriter.Style().Options.SeparateHeader = false
23 tableWriter.Style().Options.SeparateColumns = false
24 return tableWriter
25}
26
27// This type can be supplied as part of a slice to DisplayTable
28// or to a `TableFormat` `Format` call to render a separator.

Callers 2

FormatMethod · 0.92
renderTableFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected