예제 #1
0
파일: cli.py 프로젝트: zjbreeze/schwa
 def run(args):
     Views.wait()
     try:
         s = Schwa(args.repository)
         analytics = s.analyze(max_commits=args.commits, parallel=not args.single)
         Views.results(analytics)
     except (RepositoryExtractionException, SchwaConfigurationException) as e:
         Views.failed(e)
         sys.exit(1)
예제 #2
0
파일: cli.py 프로젝트: zjbreeze/schwa
 def run_json(args):
     s = Schwa(args.repository)
     analytics = s.analyze(max_commits=args.commits, parallel=not args.single)
     Views.results_json(analytics)