Sha256: 9bdf22b7f1cacb82f4d1001281a5f163d59fd3eb3bf35dd61d23886268de69df

Contents?: true

Size: 490 Bytes

Versions: 6

Compression:

Stored size: 490 Bytes

Contents

#!/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"

Inch::CLI::CommandParser.run(*ARGV)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inch-0.5.0.rc5 bin/inch
inch-0.5.0.rc4 bin/inch
inch-0.4.10 bin/inch
inch-0.4.9 bin/inch
inch-0.4.8 bin/inch
inch-0.4.7 bin/inch