Skip to content

Commit fcc330e

Browse files
authored
Fix #127 (#147)
* Fix #112 * Fix #127
1 parent 8aff9ac commit fcc330e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

bin/node-lambda

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,9 @@ var PACKAGE_DIRECTORY = process.env.PACKAGE_DIRECTORY;
3434
var CONTEXT_FILE = process.env.CONTEXT_FILE || 'context.json';
3535
var PREBUILT_DIRECTORY = process.env.PREBUILT_DIRECTORY || '';
3636

37-
38-
3937
program
4038
.version(lambda.version)
41-
.command('deploy')
39+
.alias('deploy')
4240
.description('Deploy your application to Amazon Lambda')
4341
.option('-e, --environment [' + AWS_ENVIRONMENT + ']', 'Choose environment {dev, staging, production}',
4442
AWS_ENVIRONMENT)
@@ -70,8 +68,8 @@ program
7068
});
7169

7270
program
73-
.version(lambda.version)
7471
.command('package')
72+
.alias('zip')
7573
.description('Create zipped package for Amazon Lambda deployment')
7674
.option('-A, --packageDirectory [' + PACKAGE_DIRECTORY + ']', 'Local Package Directory', PACKAGE_DIRECTORY)
7775
.option('-n, --functionName [' + AWS_FUNCTION_NAME + ']', 'Lambda FunctionName', AWS_FUNCTION_NAME)
@@ -88,8 +86,8 @@ program
8886
});
8987

9088
program
91-
.version(lambda.version)
9289
.command('run')
90+
.alias('execute')
9391
.description('Run your Amazon Lambda application locally')
9492
.option('-H, --handler [' + AWS_HANDLER + ']', 'Lambda Handler {index.handler}', AWS_HANDLER)
9593
.option('-j, --eventFile [' + EVENT_FILE + ']', 'Event JSON File', EVENT_FILE)
@@ -102,7 +100,6 @@ program
102100
});
103101

104102
program
105-
.version(lambda.version)
106103
.command('setup')
107104
.description('Sets up the .env file.')
108105
.option('-j, --eventFile [' + EVENT_FILE + ']', 'Event JSON File', EVENT_FILE)

0 commit comments

Comments
 (0)