File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -118,8 +118,6 @@ class ServerlessPythonRequirements {
118
118
119
119
this . commands = {
120
120
requirements : {
121
- usage : 'Serverless plugin to bundle Python packages' ,
122
- lifecycleEvents : [ 'requirements' ] ,
123
121
commands : {
124
122
clean : {
125
123
usage : 'Remove .requirements and requirements.zip' ,
@@ -138,6 +136,15 @@ class ServerlessPythonRequirements {
138
136
}
139
137
} ;
140
138
139
+ if ( this . serverless . cli . generateCommandsHelp ) {
140
+ Object . assign ( this . commands . requirements , {
141
+ usage : 'Serverless plugin to bundle Python packages' ,
142
+ lifecycleEvents : [ 'requirements' ]
143
+ } ) ;
144
+ } else {
145
+ this . commands . requirements . type = 'container' ;
146
+ }
147
+
141
148
const isFunctionRuntimePython = args => {
142
149
// If functionObj.runtime is undefined, python.
143
150
if ( ! args [ 1 ] . functionObj || ! args [ 1 ] . functionObj . runtime ) {
You can’t perform that action at this time.
0 commit comments