---
# System prepended metadata

title: go-cli-ui behavior

---

# go-cli-ui behavior

The table below list down different scenarios and the UI initialized by `go-cli-ui`


| Scenario  | TTY Value in `go-cli-ui` | UI Initialized by `go-cli-ui` |
| -------- | -------- | -------- |
| CLI cmd with output to terminal and args `tty=true`         | True     | Padding UI     |
| CLI cmd with output to terminal and args `tty=false`         | False     | NonTTYUI     |
| CLI cmd with output not to terminal and args `tty=true`         | False     | NonTTYUI     |
| CLI cmd with output not to terminal and args `tty=false`         | False     | NonTTYUI     |


