aboutsummaryrefslogtreecommitdiffstats
path: root/pygitty.py
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-05-20 11:57:49 +0000
committerterminaldweller <thabogre@gmail.com>2022-05-20 11:57:49 +0000
commitb94c6510a470760fd226c29be3700e93556b148d (patch)
tree616c9bde3e66099229fdeed11714a90e556a7925 /pygitty.py
parentirssi (diff)
downloadscripts-b94c6510a470760fd226c29be3700e93556b148d.tar.gz
scripts-b94c6510a470760fd226c29be3700e93556b148d.zip
update
Diffstat (limited to '')
-rwxr-xr-xpygitty.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pygitty.py b/pygitty.py
index 2f348e1..bd0ae77 100755
--- a/pygitty.py
+++ b/pygitty.py
@@ -4,12 +4,14 @@ from github import Github
import json
import argparse
+
class Argparser(object):
def __init__(self):
parser = argparse.ArgumentParser()
parser.add_argument("--repo", type=str, help="repo to look for")
self.args = parser.parse_args()
+
def main():
argparser = Argparser()
passwd = json.load(open("/home/bloodstalker/scripts/github.json"))["pass"]
@@ -17,5 +19,6 @@ def main():
repo = g.get_repo(argparser.args.repo)
print(repo.stargazers_count)
+
if __name__ == "__main__":
main()