mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Display general information on service, functions and endpoints. Add tests. partial fix for #1468 - display endpoints fix 1468 - display endpoints Display general information on service, functions and endpoints. Add tests.
29 lines
523 B
JavaScript
29 lines
523 B
JavaScript
'use strict';
|
|
|
|
class Info {
|
|
constructor(serverless) {
|
|
this.serverless = serverless;
|
|
|
|
this.commands = {
|
|
info: {
|
|
usage: 'Displays information about the service.',
|
|
lifecycleEvents: [
|
|
'info',
|
|
],
|
|
options: {
|
|
stage: {
|
|
usage: 'Stage of the service',
|
|
shortcut: 's',
|
|
},
|
|
region: {
|
|
usage: 'Region of the service',
|
|
shortcut: 'r',
|
|
},
|
|
},
|
|
},
|
|
};
|
|
}
|
|
}
|
|
|
|
module.exports = Info;
|