Created
March 13, 2012 03:24
-
-
Save ralphbean/2026418 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import github2.client | |
| ghc = github2.client.Github() | |
| all_repos, page = [], 0 | |
| while True: | |
| new_repos = ghc.repos.list('toscawidgets', page) | |
| if not new_repos: | |
| break | |
| all_repos.extend(new_repos) | |
| page += 1 | |
| names = [repo.name for repo in all_repos] | |
| names = list(set(names)) | |
| for name in names: | |
| if 'tw2' in name: | |
| print "git clone [email protected]:toscawidgets/%s.git;" % name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment