fork of hey-api/openapi-ts because I need some additional things
at feat/use-query-options-param 14 lines 432 B view raw
1/** 2 * Detect if the current session is interactive based on TTY status and environment variables. 3 * This is used as a fallback when the user doesn't explicitly set the interactive option. 4 * @internal 5 */ 6export function detectInteractiveSession(): boolean { 7 return Boolean( 8 process.stdin.isTTY && 9 process.stdout.isTTY && 10 !process.env.CI && 11 !process.env.NO_INTERACTIVE && 12 !process.env.NO_INTERACTION, 13 ); 14}