serverless/lib/plugins/remove.js
2020-12-14 15:16:31 +01:00

32 lines
668 B
JavaScript

'use strict';
class Remove {
constructor(serverless) {
this.serverless = serverless;
this.commands = {
remove: {
usage: 'Remove Serverless service and all resources',
configDependent: true,
lifecycleEvents: ['remove'],
options: {
stage: {
usage: 'Stage of the service',
shortcut: 's',
},
region: {
usage: 'Region of the service',
shortcut: 'r',
},
verbose: {
usage: 'Show all stack events during deployment',
shortcut: 'v',
},
},
},
};
}
}
module.exports = Remove;