Class: Gzr::CLI

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

Overview

Handle the application command line parsing and the dispatch to various command objects

Constant Summary collapse

Error =

Error raised by this runner

Class.new(StandardError)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/gzr/cli.rb', line 32

def self.exit_on_failure?
  true
end

Instance Method Details

#versionObject



55
56
57
58
# File 'lib/gzr/cli.rb', line 55

def version
  require_relative 'version'
  puts "v#{Gzr::VERSION}"
end