Sha256: 2425ae6439d9efd05011b1b3ad032e2b64bd0355c595f238d4e2301edef81d9f

Contents?: true

Size: 516 Bytes

Versions: 31

Compression:

Stored size: 516 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

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
middleman-cli-4.5.1 lib/middleman-cli.rb
middleman-cli-4.5.0 lib/middleman-cli.rb
middleman-cli-4.4.3 lib/middleman-cli.rb
middleman-cli-4.4.2 lib/middleman-cli.rb
middleman-cli-4.4.0 lib/middleman-cli.rb
middleman-cli-4.3.11 lib/middleman-cli.rb
middleman-cli-4.3.10 lib/middleman-cli.rb
middleman-cli-4.3.8 lib/middleman-cli.rb
middleman-cli-4.3.7 lib/middleman-cli.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/middleman-cli-4.3.3/lib/middleman-cli.rb
middleman-cli-4.3.6 lib/middleman-cli.rb
middleman-cli-4.3.5 lib/middleman-cli.rb
middleman-cli-4.3.4 lib/middleman-cli.rb
middleman-cli-4.3.3 lib/middleman-cli.rb
middleman-cli-4.3.2 lib/middleman-cli.rb
middleman-cli-4.3.1 lib/middleman-cli.rb
middleman-cli-4.3.0 lib/middleman-cli.rb
middleman-cli-4.3.0.rc.1 lib/middleman-cli.rb
middleman-cli-4.2.1 lib/middleman-cli.rb
middleman-cli-4.2.0 lib/middleman-cli.rb