Skip to content

Commit

Permalink
Add description for command (#221)
Browse files Browse the repository at this point in the history
When type `sls`:
* As is
![](http://i64.tinypic.com/2i7ofae.png)
* To be
![](http://i67.tinypic.com/1qrhqo.png)

When type `sls requirements`:
* As is
_nothing_
* To be
![](http://i66.tinypic.com/1gq9ty.png)
  • Loading branch information
Ephemera authored and dschep committed Jul 28, 2018
1 parent 825cf61 commit ce04ef5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ class ServerlessPythonRequirements {

this.commands = {
requirements: {
usage: 'Serverless plugin to bundle Python packages',
lifecycleEvents: ['requirements'],
commands: {
clean: {
usage: 'Remove .requirements and requirements.zip',
Expand Down Expand Up @@ -165,6 +167,10 @@ class ServerlessPythonRequirements {
'after:package:createDeploymentArtifacts': after,
'before:deploy:function:packageFunction': before,
'after:deploy:function:packageFunction': after,
'requirements:requirements': () => {
this.serverless.cli.generateCommandsHelp(['requirements']);
return BbPromise.resolve();
},
'requirements:install:install': () =>
BbPromise.bind(this)
.then(pipfileToRequirements)
Expand Down

0 comments on commit ce04ef5

Please sign in to comment.