(options?: { nonInteractive?: boolean })
| 18 | * was not passed. |
| 19 | */ |
| 20 | export function isInteractive(options?: { nonInteractive?: boolean }): boolean { |
| 21 | if (options?.nonInteractive === true) return false; |
| 22 | if (process.env.CI) return false; |
| 23 | return process.stdout.isTTY === true && process.stdin.isTTY === true; |
| 24 | } |
| 25 | |
| 26 | /** |
| 27 | * Detects whether the current process is running in a CI environment. |
no outgoing calls
no test coverage detected