spec/cli_spec.rb
# Formats all commands like thor's `help`
Formats all commands like thor's `help`
Formats all commands like thor ' s ` help `
def format_all_cmds
  COMMANDS.values.map do |info|
    format_cmd :usage => info[:usage], :desc => info[:desc]
  end.join "\n  "
end
def format_all_cmds COMMANDS . values . map do | info | format_cmd :usage => info [ :usage ] , :desc => info [ :desc ] end . join "\n  " end
Formats all commands like thor's `help`
Formats all commands like thor ' s ` help `