Class: GitStats::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/git_stats/cli.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



16
17
18
19
20
21
# File 'lib/git_stats/cli.rb', line 16

def generate
  I18n.locale = options[:language]
  GitStats::Generator.new(options) { |g|
    g.add_command_observer { |command, result| puts "#{command}" } unless options[:silent]
  }.render_all
end