mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
It's needed to be able to process commands as introduced by plugins without a need of processing Serverless instance
23 lines
418 B
JavaScript
23 lines
418 B
JavaScript
'use strict';
|
|
|
|
const cliCommandsSchema = require('../cli/commands-schema');
|
|
|
|
class Rollback {
|
|
constructor(serverless) {
|
|
this.serverless = serverless;
|
|
|
|
this.commands = {
|
|
rollback: {
|
|
...cliCommandsSchema.get('rollback'),
|
|
commands: {
|
|
function: {
|
|
...cliCommandsSchema.get('rollback function'),
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Rollback;
|