IsTTY gets whether the TablePrinter will render to a terminal.
()
| 18 | |
| 19 | // IsTTY gets whether the TablePrinter will render to a terminal. |
| 20 | func (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. |
no outgoing calls
no test coverage detected