The secret prompt of a run: promptHidden when stdin is a terminal, else undefined (a pipe cannot answer a prompt).
stdin
The input stream.
Ask for a secret on the terminal without echoing it. The prompt goes to stderr, so stdout keeps only the result.
The prompt.
The answer, or undefined when the prompt was cancelled.
The secret prompt of a run: promptHidden when
stdinis a terminal, else undefined (a pipe cannot answer a prompt).