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

Function NewTable

pkg/output/table.go:51–64  ·  view source on GitHub ↗
(writer io.Writer)

Source from the content-addressed store, hash-verified

49}
50
51func NewTable(writer io.Writer) Table {
52 width := defaultWidth
53 if term.IsTerminal(int(os.Stdin.Fd())) {
54 width, _, _ = term.GetSize(int(os.Stdout.Fd()))
55 if width < 1 {
56 width = defaultWidth
57 }
58 }
59
60 return &table{
61 out: writer,
62 maxWidth: width,
63 }
64}
65
66func (t *table) AddRow(s ...string) {
67 t.rows = append(t.rows, s)

Callers 9

printGitResourceGitRefsFunction · 0.92
printPackageVersionsFunction · 0.92
OutputDeprovisionResultFunction · 0.92
runRunbooksByTagFunction · 0.92
listRunFunction · 0.92
ViewRunFunction · 0.92
PrintRowsFunction · 0.85
PrintResourceFunction · 0.85
PrintArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected