We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8dfdb0 commit 5652ce8Copy full SHA for 5652ce8
scripts/lambda
@@ -16,17 +16,21 @@ def cli():
16
17
18
@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
+)
23
@click.argument(
24
'folder', nargs=-1,
25
type=click.Path(file_okay=False, writable=True),
26
)
-def init(folder):
27
+def init(folder, minimal):
28
path = CURRENT_DIR
29
if len(folder) > 0:
30
path = os.path.join(CURRENT_DIR, *folder)
31
if not os.path.exists(path):
32
os.makedirs(path)
- aws_lambda.init(path)
33
+ aws_lambda.init(path, minimal=minimal)
34
35
36
@click.command(help='Bundles package for deployment.')
0 commit comments