serverless/lib/plugins/metrics.js
Mariusz Nowak 2294a4b4cb refactor(CLI): Move lifecycles definition to commands schema
It's needed to be able to process commands as introduced by plugins without a need of processing Serverless instance
2021-03-24 11:50:24 +01:00

19 lines
326 B
JavaScript

'use strict';
const cliCommandsSchema = require('../cli/commands-schema');
class Metrics {
constructor(serverless, options) {
this.serverless = serverless;
this.options = options;
this.commands = {
metrics: {
...cliCommandsSchema.get('metrics'),
},
};
}
}
module.exports = Metrics;