Sha256: 64e55636beebc588dbf0e87575d120573f815db35407930f2dc89c39de8d6959
Contents?: true
Size: 576 Bytes
Versions: 6
Compression:
Stored size: 576 Bytes
Contents
require 'erb' module Commander module HelpFormatter ## # = Terminal # # Outputs help in a terminal friendly format, # utilizing asni formatting via the highline gem. class Terminal < Base def render template(:help).result @runner.get_binding end def render_command command template(:command_help).result command.get_binding end def template name ERB.new(File.read(File.expand_path(File.dirname(__FILE__)) + "/terminal/#{name}.erb"), nil, "-") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems