Raised when a command would have to prompt but stdin is not a terminal. The message names the flag to pass. It is a usage error, so the CLI exits with EXIT_NON_INTERACTIVE.
throw new NonInteractiveError('stdin is not a terminal; pass --yes'); Copy
throw new NonInteractiveError('stdin is not a terminal; pass --yes');
Readonly
Optional
Raised when a command would have to prompt but stdin is not a terminal. The message names the flag to pass. It is a usage error, so the CLI exits with EXIT_NON_INTERACTIVE.
Example