From 7469fa3dcfdaf5afe5fe41a148d04e3e67f5eea2 Mon Sep 17 00:00:00 2001 From: Matthew Welch Date: Thu, 2 Apr 2020 19:46:52 -0700 Subject: [PATCH] fixed cli --- main.py | 6 ++++++ 1 file changed, 6 insertions(+) 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])