summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/bin/rougify
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/bin/rougify')
-rwxr-xr-xvendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/bin/rougify18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/bin/rougify b/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/bin/rougify
new file mode 100755
index 0000000..13f2b10
--- /dev/null
+++ b/vendor/bundle/ruby/3.4.0/gems/rouge-4.7.0/bin/rougify
@@ -0,0 +1,18 @@
+#!/usr/bin/env ruby
+# frozen_string_literal: true
+
+require 'pathname'
+ROOT_DIR = Pathname.new(__FILE__).dirname.parent
+Kernel::load ROOT_DIR.join('lib/rouge.rb')
+Kernel::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