class Crumb(object): def __init__(self): #self.log = logging.getLogger(__name__) self.repo = GitRepo() self.config = Configuration(self.repo) def run(self, command): runner = Runner(self.config) relpath = path.relpath('.', self.repo.basedir) with repo_clone(self.repo, self.config) as clone_dir: annotations = runner.run(clone_dir, relpath, command) self.repo.annotate(annotations) def export(self, out_file): exporter = CSVExporter(self.repo, self.config) exporter.export(out_file)
def __init__(self): #self.log = logging.getLogger(__name__) self.repo = GitRepo() self.config = Configuration(self.repo)
def fetch_jobs_stdin(): for line in sys.stdin: yield GitRepo(line.strip())