class SemverDialects::CLI

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

@api public

Constants

Error

Error raised by this runner

Public Instance Methods

check_version(type, version, constraint) click to toggle source
# File lib/semver_dialects/cli.rb, line 24
def check_version(type, version, constraint)
  if options[:help]
    invoke :help, ['check_version']
  else
    require_relative 'commands/check_version'
    ecode = SemverDialects::Commands::CheckVersion.new(type, version, constraint, options).execute
    exit(ecode)
  end
end
version() click to toggle source
# File lib/semver_dialects/cli.rb, line 15
def version
  require_relative 'version'
  puts "v#{SemverDialects::VERSION}"
end