Skip to content

Commit c7f8f45

Browse files
committed
added build command
1 parent 72d6c68 commit c7f8f45

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

aws_lambda/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
__email__ = '[email protected]'
55
__version__ = '0.1.11'
66

7-
from .aws_lambda import deploy, invoke, init
7+
from .aws_lambda import deploy, invoke, init, build
88

99
# Set default logging handler to avoid "No handler found" warnings.
1010
import logging

scripts/lambda

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ def init():
2020
aws_lambda.init(CURRENT_DIR)
2121

2222

23+
@click.command(help="Bundles package for deployment.")
24+
def build():
25+
aws_lambda.build(CURRENT_DIR)
26+
27+
2328
@click.command(help="Run a local test of your function.")
2429
@click.option('--event-file', default=None, help='Alternate event file.')
2530
@click.option('--verbose', '-v', is_flag=True)
@@ -35,4 +40,5 @@ if __name__ == '__main__':
3540
cli.add_command(init)
3641
cli.add_command(invoke)
3742
cli.add_command(deploy)
43+
cli.add_command(build)
3844
cli()

0 commit comments

Comments
 (0)