INNER CODE UNIT · JavaScript
status
clinicjs/node-clinic · bin.js:376
function status (message) {
/* istanbul ignore next: isEnabled is always false when spawn process. See: https://github.com/sindresorhus/ora#isenabled */
if (spinner.isEnabled) {
spinner.text = message
} else {
console.log(message)
}
}
/* istanbul ignore next: SIGINT by spawned process is tricky */
function onsigint () {
status('Received Ctrl+C, closing process...')
if (!spinner.isSpinning) spinner.start()
}
let defer
const promise = new Promise((resolve, reject) => {
defer = { resolve, reject }