(value?: boolean | InteractiveOptions)
| 20 | } |
| 21 | |
| 22 | export function isInteractive(value?: boolean | InteractiveOptions): boolean { |
| 23 | if (resolveNoInteractive(value)) return false; |
| 24 | if (process.env.OPEN_SPEC_INTERACTIVE === '0') return false; |
| 25 | // Respect the standard CI environment variable (set by GitHub Actions, GitLab CI, Travis, etc.) |
| 26 | if ('CI' in process.env) return false; |
| 27 | return !!process.stdin.isTTY; |
| 28 | } |
| 29 |
no test coverage detected