%load_problem github-repos
Problem: List Github Repos
Write a program github_repos.py to list the github repos of a user given the access token.
The program should accept the access token using command-line flag -t and print full name of all the repositories of that user. A suffix of * should be added if the repository is private.
$ python github_repos.py -t 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
PipalBot/hello-world
PipalBot/python-assignment-01*
PipalBot/python-assignment-02*
Assume that the command-line flag -t is always provided.
The Github API
The List repositories for the authenticated user section in the Github developer docs has required information about how to use this API.
You can verify your solution using:
%verify_problem github-repos