class Thor::Shell::Basic

def print_list(list, options={})


ident:: Ident each item with the value given.
mode:: Can be :rows or :inline. Defaults to :rows.
==== Options

list
==== Parameters

Prints a list of items.
def print_list(list, options={})
  return if list.empty?
  ident   = " " * (options[:ident] || 0)
  content = case options[:mode]
    when :inline
      last = list.pop
      "#{list.join(", ")}, and #{last}"
    else # rows
      ident + list.join("\n#{ident}")
  end
  $stdout.puts content
end