mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Add option definitions to core plugins
This commit is contained in:
parent
b7ce3e1ed2
commit
e563a071b5
@ -14,6 +14,16 @@ class Deploy {
|
||||
'compileEvents',
|
||||
'deploy',
|
||||
],
|
||||
options: {
|
||||
stage: {
|
||||
usage: 'Stage of the service',
|
||||
required: true,
|
||||
},
|
||||
region: {
|
||||
usage: 'Region of the service',
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@ -3,12 +3,36 @@
|
||||
class Invoke {
|
||||
constructor(serverless) {
|
||||
this.serverless = serverless;
|
||||
|
||||
this.commands = {
|
||||
invoke: {
|
||||
usage: 'Invokes a deployed function.',
|
||||
lifecycleEvents: [
|
||||
'invoke',
|
||||
],
|
||||
options: {
|
||||
function: {
|
||||
usage: 'The function name',
|
||||
required: true,
|
||||
},
|
||||
stage: {
|
||||
usage: 'Stage of the service',
|
||||
required: true,
|
||||
},
|
||||
region: {
|
||||
usage: 'Region of the service',
|
||||
required: true,
|
||||
},
|
||||
path: {
|
||||
usage: 'Path to JSON file holding input data',
|
||||
},
|
||||
type: {
|
||||
usage: 'Type of invocation',
|
||||
},
|
||||
log: {
|
||||
usage: 'Trigger logging data output',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@ -10,6 +10,16 @@ class Remove {
|
||||
lifecycleEvents: [
|
||||
'remove',
|
||||
],
|
||||
options: {
|
||||
stage: {
|
||||
usage: 'Stage of the service',
|
||||
required: true,
|
||||
},
|
||||
region: {
|
||||
usage: 'Region of the service',
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user