class CodeFormatter::CLI
Public Instance Methods
format()
click to toggle source
# File lib/code_formatter/cli.rb, line 21 def format config = Configuration.load_from(options[:config]) force_all = options[:force_all] path = options[:path] formatters = [ SwiftFormatFormatter.new(config, path), SwiftLintFormatter.new(config, path), ClangFormatFormatter.new(config, path) ] formatters.each { |f| f&.format(force_all) } end
init()
click to toggle source
# File lib/code_formatter/cli.rb, line 13 def init Initializer.init end