Class: Vcs2JsonCLI::Main

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

default thor behavior is to return exit 0 on errors (i.e., success..) by having exit_on_failure return true, exit(1) is returned instead

Returns:

  • (Boolean)


18
19
20
# File 'lib/cli/main.rb', line 18

def self.exit_on_failure?
  true
end

Instance Method Details

#__print_versionObject



11
12
13
# File 'lib/cli/main.rb', line 11

def __print_version
    puts Vcs2Json::VERSION
end

#gitObject



35
36
37
# File 'lib/cli/main.rb', line 35

def git
    Vcs2Json::Git.new(options).parse
end