Class: Middleman::Presentation::Cli::Base

Inherits:
Thor
  • Object
show all
Includes:
Shared
Defined in:
lib/middleman-presentation-core/cli/base.rb

Overview

Base cli class

Direct Known Subclasses

Build, Change, Create, Edit, Export, Init, List, Runner, Serve, Show

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Shared

#assets_loader, #bower_path, #enable_debug_mode, included, #open_in_editor

Class Method Details

.subcommand_help(_cmd) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/middleman-presentation-core/cli/base.rb', line 9

def self.subcommand_help(_cmd)
  desc 'help [COMMAND]', Middleman::Presentation.t('views.application.help')

  class_eval "
                        def help(command = nil, subcommand = true); super; end
  "
end

Instance Method Details

#help(*args) ⇒ Object



18
19
20
# File 'lib/middleman-presentation-core/cli/base.rb', line 18

def help(*args)
  super
end