Sha256: c5be3521fff6b3576867c1cd9f08859f7183ca64ee0ed01982785056c8ba28df

Contents?: true

Size: 490 Bytes

Versions: 28

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

28 entries across 28 versions & 1 rubygems

Version Path
inch-0.5.1 bin/inch
inch-0.5.0 bin/inch
inch-0.5.0.rc11 bin/inch
inch-0.5.0.rc10 bin/inch
inch-0.5.0.rc9 bin/inch
inch-0.5.0.rc8 bin/inch
inch-0.5.0.rc7 bin/inch
inch-0.5.0.rc6 bin/inch