class SyntaxTree::CLI::Format
An action of the CLI
that formats the input source and prints it out.
Public Instance Methods
Source
# File lib/syntax_tree/cli.rb, line 317 def run(item) formatted = item.handler.format( item.source, options.print_width, options: options.formatter_options ) puts formatted end