diff --git a/main.py b/main.py index b1e4e7b..5fe2035 100644 --- a/main.py +++ b/main.py @@ -1,4 +1,6 @@ +#!/bin/python3 import requests +import sys from jinja2 import Template @@ -12,3 +14,7 @@ def package(package_name, template): summary=info["info"]["summary"], home_page=info["info"]["home_page"], sha256=info["releases"][info["info"]["version"]][0]["digests"]["sha256"])) + + +if __name__ == "__main__": + package(sys.argv[1], sys.argv[2])