Class: Todidnt::Runner
- Inherits:
-
Object
- Object
- Todidnt::Runner
- Defined in:
- lib/todidnt.rb
Class Method Summary collapse
Class Method Details
.start(options) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/todidnt.rb', line 7 def self.start() GitRepo.new([:path]).run do |path| puts "Running in #{path || 'current directory'}..." lines = TodoLine.all(["TODO"]) puts "Found #{lines.count} TODOs. Blaming..." lines.each_with_index do |todo, i| todo.populate_blame $stdout.write "\rBlamed: #{i}/#{lines.count}" end puts "\nResults:" lines.each do |line| puts line.pretty end end end |