1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/middleman-cli/lib/middleman-cli.rb
Thomas Reynolds efd1ef69d6
2018 cleanup
Upgrade our deps
Drop support for Ruby 2.2 (because some deps have)
Update rubocop and lints
2018-09-11 11:43:07 -07:00

21 lines
455 B
Ruby

# Setup our load paths
libdir = __dir__
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
# Require Thor since that's what the whole CLI is built around
require 'thor'
# CLI Module
module Middleman::Cli
# The base task from which everything else extends
class Base < ::Thor
desc 'version', 'Show version'
def version
say "Middleman #{Middleman::VERSION}"
end
def self.exit_on_failure?
true
end
end
end