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.
2 parents bc3cf2b + 1b0ee0e commit 76ee21cCopy full SHA for 76ee21c
scripts/lambda
@@ -16,8 +16,14 @@ def cli():
16
17
18
@click.command(help="Create a new function for Lambda.")
19
-def init():
20
- aws_lambda.init(CURRENT_DIR)
+@click.argument('folder', nargs=-1, type=click.Path(file_okay=False, writable=True))
+def init(folder):
21
+ path = CURRENT_DIR
22
+ if len(folder) > 0:
23
+ path = "{}/{}".format(CURRENT_DIR, folder[0])
24
+ if not os.path.exists(path):
25
+ os.makedirs(path)
26
+ aws_lambda.init(path)
27
28
29
@click.command(help="Bundles package for deployment.")
0 commit comments