SetNonInteractive disables interactive mode regardless of TTY state. Call this when --json or similar flags are set.
(v bool)
| 12 | // SetNonInteractive disables interactive mode regardless of TTY state. |
| 13 | // Call this when --json or similar flags are set. |
| 14 | func SetNonInteractive(v bool) { |
| 15 | forceNonInteractive = v |
| 16 | } |
| 17 | |
| 18 | // IsInteractive returns true when stdout is a TTY and the session |
| 19 | // is suitable for Bubble Tea TUI rendering. Commands use this to |