MCPcopy
hub / github.com/cli/cli / IsTTY

Method IsTTY

internal/tableprinter/table_printer.go:20–22  ·  view source on GitHub ↗

IsTTY gets whether the TablePrinter will render to a terminal.

()

Source from the content-addressed store, hash-verified

18
19// IsTTY gets whether the TablePrinter will render to a terminal.
20func (t *TablePrinter) IsTTY() bool {
21 return t.isTTY
22}
23
24// AddTimeField in TTY mode displays the fuzzy time difference between now and t.
25// In non-TTY mode it just displays t with the time.RFC3339 format.

Callers 5

listRunFunction · 0.80
listRunFunction · 0.80
displayIssueResultsFunction · 0.80
listRunFunction · 0.80
listRunFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected