Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
run() {
console.log("⚡️ 🤖 Loading logs from your instant bot...");
process.spawn('serverless', ['logs', '-f', 'runBot'], {stdio: 'inherit', env: process.env});
}
run() {
console.log("⚡️ 🤖 Deploying your instant bot...");
process.spawn('serverless', ['deploy'], {stdio: 'inherit', env: process.env});
}
run() {
console.log();
console.log("⚡️ 🤖 Removing your instant bot...");
process.spawn('serverless', ['remove'], {stdio: 'inherit', env: process.env});
}
return inquirer.prompt(questions).then((answers) => {
console.log("⚡️ Creating a new serverless application...");
process.spawn('serverless', ['install', '-u', this.getTemplate(answers), '-n', answers.botName], {stdio: 'inherit', env: process.env});
});
}
const isMin = () => (process.env.NODE_ENV === 'production') ? '' : 'min'