class Bartab::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

install(*) click to toggle source
# File lib/bartab/cli.rb, line 24
def install(*)
  if options[:help]
    invoke :help, ['install']
  else
    require_relative 'commands/install'
    Bartab::Commands::Install.new(options).execute
  end
end
setup(*) click to toggle source
# File lib/bartab/cli.rb, line 36
def setup(*)
  if options[:help]
    invoke :help, ['setup']
  else
    require_relative 'commands/setup'
    Bartab::Commands::Setup.new(options).execute
  end
end
version() click to toggle source
# File lib/bartab/cli.rb, line 15
def version
  require_relative 'version'
  puts "v#{Bartab::VERSION}"
end