Sha256: f0c66d05ff7c1c2b1fdfc8f9c98350b0247789f008ec9ecb536681b6c8f1ed84

Contents?: true

Size: 799 Bytes

Versions: 9

Compression:

Stored size: 799 Bytes

Contents

# rubocop:disable FileName

# Setup our load paths
libdir = File.expand_path(File.dirname(__FILE__))
$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

# Require the Middleman version
require 'middleman-core/version'

# Include the core CLI items
require 'middleman-cli/init'
require 'middleman-cli/extension'
require 'middleman-cli/server'
require 'middleman-cli/build'
require 'middleman-cli/console'
require 'middleman-cli/config'

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
middleman-cli-4.1.2 lib/middleman-cli.rb
middleman-cli-4.1.1 lib/middleman-cli.rb
middleman-cli-4.1.0 lib/middleman-cli.rb
middleman-cli-4.1.0.rc.2 lib/middleman-cli.rb
middleman-cli-4.1.0.rc.1 lib/middleman-cli.rb
middleman-cli-4.0.0 lib/middleman-cli.rb
middleman-cli-4.0.0.rc.3 lib/middleman-cli.rb
middleman-cli-4.0.0.rc.2 lib/middleman-cli.rb
middleman-cli-4.0.0.rc.1 lib/middleman-cli.rb