Sha256: 1c8ea7e4f6f07c6ee8be4fb150ab586179db46977be1393d1861e32755af10ea

Contents?: true

Size: 490 Bytes

Versions: 3

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

3 entries across 3 versions & 1 rubygems

Version Path
inch-0.5.0.rc3 bin/inch
inch-0.5.0.rc2 bin/inch
inch-0.5.0.rc1 bin/inch