Class: FastlaneCore::HelpFormatter

Inherits:
Commander::HelpFormatter::TerminalCompact
  • Object
show all
Defined in:
fastlane_core/lib/fastlane_core/ui/help_formatter.rb

Instance Method Summary collapse

Instance Method Details

#template(name) ⇒ Object



5
6
7
8
9
10
11
12
13
14
# File 'fastlane_core/lib/fastlane_core/ui/help_formatter.rb', line 5

def template(name)
  # fastlane only customizes the global command help
  return super unless name == :help

  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.6')
    ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), nil, '-')
  else
    ERB.new(File.read(File.join(File.dirname(__FILE__), "help.erb")), trim_mode: '-')
  end
end