Skip to content

Commit

Permalink
feat: allow sam to be invoked as a module (#987)
Browse files Browse the repository at this point in the history
  • Loading branch information
sriram-mv authored and sanathkr committed Feb 14, 2019
1 parent 1cc7810 commit c7b8649
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=compat.py
ignore=compat.py, __main__.py

# Pickle collected data for later comparisons.
persistent=yes
Expand Down
10 changes: 10 additions & 0 deletions samcli/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
Invokable Module for CLI
python -m samcli
"""

from samcli.cli.main import cli

if __name__ == "__main__":
cli()

0 comments on commit c7b8649

Please sign in to comment.