class Bake::Command::List
def print_scope(terminal, scope)
def print_scope(terminal, scope) format_recipe = self.method(:format_recipe).curry scope.recipes.sort_by(&:command).each do |recipe| terminal.print_line terminal.print_line("\t", format_recipe[recipe]) recipe.description.each do |line| if match = line.match(PARAMETER) terminal.print_line("\t\t", :parameter, match[:name], :reset, " [", :type, match[:type], :reset, "] ", :description, match[:details] ) else terminal.print_line("\t\t", :description, line) end end end end