Initial commit, got popularity scanner working
This commit is contained in:
commit
d725de6949
8 changed files with 155 additions and 0 deletions
20
bin/popular-repositories
Executable file
20
bin/popular-repositories
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env python
|
||||
import argparse
|
||||
import teamanalysis.git
|
||||
import teamanalysis.repos
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('name', help='The name of the person to look up')
|
||||
args = parser.parse_args()
|
||||
|
||||
for repo in teamanalysis.repos.REPOSITORIES:
|
||||
print(repo)
|
||||
abspath = '/Users/eliribble/src/{}/'.format(repo)
|
||||
entries = teamanalysis.git.shortlog(abspath)
|
||||
matching_entries = [entry for entry in entries if args.name in entry[1]]
|
||||
for entry in matching_entries:
|
||||
print("\t{} {}".format(*entry))
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue