Skip to content

Commit 5652ce8

Browse files
committed
minimal
1 parent c8dfdb0 commit 5652ce8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

scripts/lambda

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,21 @@ def cli():
1616

1717

1818
@click.command(help='Create a new function for Lambda.')
19+
@click.option(
20+
'--minimal', default=False, is_flag=True,
21+
help='Exclude any unnecessary template files',
22+
)
1923
@click.argument(
2024
'folder', nargs=-1,
2125
type=click.Path(file_okay=False, writable=True),
2226
)
23-
def init(folder):
27+
def init(folder, minimal):
2428
path = CURRENT_DIR
2529
if len(folder) > 0:
2630
path = os.path.join(CURRENT_DIR, *folder)
2731
if not os.path.exists(path):
2832
os.makedirs(path)
29-
aws_lambda.init(path)
33+
aws_lambda.init(path, minimal=minimal)
3034

3135

3236
@click.command(help='Bundles package for deployment.')

0 commit comments

Comments
 (0)