class GitPissed::CLI

Public Instance Methods

csv() click to toggle source
# File lib/git_pissed/cli.rb, line 16
def csv
  @csv ||= CSV.new(words_by_date, options)
end
execute() click to toggle source
# File lib/git_pissed/cli.rb, line 3
def execute
  puts "Measuring #{options.words.join(', ')}..."
  puts "\n#{formatted_output}"
end
formatted_output() click to toggle source
# File lib/git_pissed/cli.rb, line 12
def formatted_output
  send options.format
end
html() click to toggle source
# File lib/git_pissed/cli.rb, line 20
def html
  @html ||= HTML.new(words_by_date, options)
end
options() click to toggle source
# File lib/git_pissed/cli.rb, line 8
def options
  @options ||= Options.new.parse!
end
words_by_date() click to toggle source
# File lib/git_pissed/cli.rb, line 24
def words_by_date
  WordFinder.new(
    Git.new(options).revisions,
    options
  ).by_date
end