class HammerCLI::FullHelpCommand::TxtAdapter
Public Instance Methods
command_name(parent, command_name)
click to toggle source
# File lib/hammer_cli/full_help.rb, line 60 def command_name(parent, command_name) "#{parent} > #{command_name}" end
print_command(name, description, help)
click to toggle source
# File lib/hammer_cli/full_help.rb, line 64 def print_command(name, description, help) print_heading(name, 2) puts description puts puts help puts end
print_heading(text, level=1)
click to toggle source
# File lib/hammer_cli/full_help.rb, line 75 def print_heading(text, level=1) ch = (level > 1) ? '-' : '=' puts text puts ch * text.length end
print_toc(cmd)
click to toggle source
# File lib/hammer_cli/full_help.rb, line 72 def print_toc(cmd) end