Skip to content

Commit ab0a091

Browse files
committed
Add a command to print the version number.
1 parent 62f8d6c commit ab0a091

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lambda_tools/command.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,10 @@ def build(source, json, functions):
6969
@click.argument('functions', nargs=-1
7070
)
7171
def deploy(source, json, functions):
72-
_process(source, functions, lambda x: x.deploy(silent=json), json)
72+
_process(source, functions, lambda x: x.deploy(silent=json), json)
73+
74+
75+
@main.command('version', help='Print the version number and exit.')
76+
def version():
77+
from lambda_tools import VERSION
78+
print(VERSION)

0 commit comments

Comments
 (0)