class SpellCheck::CLI
Public Class Methods
run(filepath)
click to toggle source
# File lib/spellcheck/cli.rb, line 3 def self.run(filepath) begin report = ProofReader.check(File.read(filepath)) if report.accept? puts ColorString.green('All ok') else puts report end rescue Errno::ENOENT => ex puts ex.message end end