bin/inch

Summary

Maintainability
Test Coverage
#!/usr/bin/env ruby

# hit Control + C to stop
Signal.trap('INT') do
  warn '  cancelled by user (INT)'
  exit 1
end

# @return [String] the path to the 'lib' directory of Inch
def find_lib_path
  path = __FILE__
  while File.symlink?(path)
    path = File.expand_path(File.readlink(path), File.dirname(path))
  end
  File.join(File.dirname(File.expand_path(path)), '..', 'lib')
end

$LOAD_PATH.unshift(find_lib_path)

require 'inch'
require 'inch/cli'

command = Inch::CLI::CommandParser.run(*ARGV)
exit(command.exit_status)