Sha256: cf8e1034a8fc3693fa0b33db318a437fd5e4aaaad54a4c0b5f914b4cdaa70bae

Contents?: true

Size: 327 Bytes

Versions: 5

Compression:

Stored size: 327 Bytes

Contents

module SpellCheck
  class CLI
    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
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spellcheck-0.3.4 lib/spellcheck/cli.rb
spellcheck-0.3.3 lib/spellcheck/cli.rb
spellcheck-0.3.2 lib/spellcheck/cli.rb
spellcheck-0.3.1 lib/spellcheck/cli.rb
spellcheck-0.3.0 lib/spellcheck/cli.rb