fixed cli

This commit is contained in:
Matthew Welch 2020-04-02 19:46:52 -07:00
parent 6c33f35a24
commit 7469fa3dcf

View File

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