Sha256: 7fca035630c2dcd33adf51360177d7fa564e3ad692fa4c7e62d52abd475e2978
Contents?: true
Size: 562 Bytes
Versions: 1
Compression:
Stored size: 562 Bytes
Contents
#!/usr/bin/env ruby require_relative '../lib/heckler' $stdout.sync = true require 'optparse' command = ARGV.shift case command when 'init' Config.init when nil config = Heckler::Config.instance aspell = Heckler::Aspell.new(config) directory = Dir.pwd @checkers = [Heckler::Checker::FileSystem.new(config, aspell)] issues = [] @checkers.each do |checker| issues.concat(checker.check(directory)) end puts issues.inspect else puts "Unknown command: #{command}" puts 'Available commands: init, or no command for default behavior' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
heckler-0.0.2 | bin/heckler |