UNPKG

@vizzly-testing/cli

Version:

Visual review platform for UI developers and designers

37 lines (36 loc) 1.23 kB
/** * Environment detection utilities for handling CI/interactive environments */ /** * Check if running in a CI environment * Based on common CI environment variables * @returns {boolean} True if running in CI */ export function isCI(): boolean; /** * Check if stdout supports interactive features * @returns {boolean} True if interactive features are supported */ export function isInteractiveTerminal(): boolean; /** * Determine if interactive mode should be enabled * Takes into account CI detection, TTY support, and explicit flags * @param {Object} options * @param {boolean} [options.noInteractive] - Explicit flag to disable interactive mode * @param {boolean} [options.interactive] - Explicit flag to force interactive mode * @returns {boolean} True if interactive mode should be enabled */ export function shouldUseInteractiveMode(options?: { noInteractive?: boolean; interactive?: boolean; }): boolean; /** * Get environment type for logging/debugging * @returns {string} Environment type description */ export function getEnvironmentType(): string; /** * Get detailed environment info for debugging * @returns {Object} Environment details */ export function getEnvironmentDetails(): any;