Class: GitStats::CLI
- Inherits:
-
Thor
- Object
- Thor
- GitStats::CLI
- Defined in:
- lib/git_stats/cli.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.exit_on_failure? ⇒ Boolean
7 8 9 |
# File 'lib/git_stats/cli.rb', line 7 def exit_on_failure? true end |
Instance Method Details
#generate ⇒ Object
22 23 24 25 26 27 |
# File 'lib/git_stats/cli.rb', line 22 def generate I18n.locale = [:language] GitStats::Generator.new() do |g| g.add_command_observer { |command, _result| puts command.to_s } unless [:silent] end.render_all end |
#version ⇒ Object
30 31 32 |
# File 'lib/git_stats/cli.rb', line 30 def version puts "GitStats #{GitStats::VERSION}" end |