2014-04-29 20:43:05 +02:00
|
|
|
# rubocop:disable FileName
|
|
|
|
|
2014-01-03 01:34:08 +01:00
|
|
|
# Setup our load paths
|
|
|
|
libdir = File.expand_path(File.dirname(__FILE__))
|
|
|
|
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
|
|
|
|
|
2014-01-10 04:49:41 +01:00
|
|
|
# Require Thor since that's what the whole CLI is built around
|
2011-07-27 06:06:10 +02:00
|
|
|
require 'thor'
|
|
|
|
|
2011-12-21 20:03:45 +01:00
|
|
|
# CLI Module
|
2015-01-04 21:23:35 +01:00
|
|
|
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
|
2012-08-14 00:39:06 +02:00
|
|
|
|
2015-01-04 21:23:35 +01:00
|
|
|
def self.exit_on_failure?
|
|
|
|
true
|
2011-12-21 21:13:28 +01:00
|
|
|
end
|
2011-07-27 06:06:10 +02:00
|
|
|
end
|
2011-12-14 08:58:34 +01:00
|
|
|
end
|