cloudworker-proxy
Version:
An api gateway for cloudflare workers
23 lines (20 loc) • 695 B
JavaScript
;
const { memoize } = require('lodash');
module.exports = memoize(async (inquirer, options) => {
if (options && (options.org || options.app)) return true;
process.stdout.write(
'You can monitor, troubleshoot, and test your new service with a free Serverless account.\n\n'
);
const { shouldEnableMonitoring } = await inquirer.prompt({
message: 'Would you like to enable this?',
type: 'confirm',
name: 'shouldEnableMonitoring',
});
if (!shouldEnableMonitoring) {
process.stdout.write(
'You can run the “serverless” command again if you change your mind later.\n'
);
}
process.stdout.write('\n');
return shouldEnableMonitoring;
});