class SyntaxTree::CLI::Format

An action of the CLI that formats the input source and prints it out.

def run(item)

def run(item)
  formatted =
    item.handler.format(
      item.source,
      options.print_width,
      options: options.formatter_options
    )
  puts formatted
end