Sha256: 31bda3b678bf5b01a786cfb2d616a5c16842b06bf7af96e1479d982c077b6d5d
Contents?: true
Size: 399 Bytes
Versions: 10
Compression:
Stored size: 399 Bytes
Contents
#!/usr/bin/env ruby require 'pathname' ROOT_DIR = Pathname.new(__FILE__).dirname.parent load ROOT_DIR.join('lib/rouge.rb') load ROOT_DIR.join('lib/rouge/cli.rb') Signal.trap('PIPE', 'SYSTEM_DEFAULT') if Signal.list.include? 'PIPE' begin Rouge::CLI.parse(ARGV).run rescue Rouge::CLI::Error => e puts e.message exit e.status rescue Interrupt $stderr.puts "\nrouge: interrupted" exit 2 end
Version data entries
10 entries across 10 versions & 3 rubygems