@nestjs/cli
Version:
The Nest CLI: create NestJS applications, generate modules, controllers and CRUD resources, and build, run and watch projects and monorepos.
16 lines (15 loc) • 650 B
TypeScript
/**
* Turns every prompt off for the rest of the process, as `--no-interactive`
* does for terminals that look interactive but have nobody to answer, like a
* coding agent's pseudo-terminal.
*/
export declare function disablePrompts(disabled?: boolean): void;
/**
* Whether the process can ask the user a question.
*
* Prompts need a TTY on stdin to read the answer and on stdout to show the
* question. Under CI, a pipe or `execSync`, asking would block forever with
* nothing to answer it, so callers fall back to a non-interactive default (or
* explicit flags) instead of prompting.
*/
export declare function isInteractive(): boolean;