File: rougify

package info (click to toggle)
ruby-rouge 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,160 kB
  • sloc: ruby: 19,346; makefile: 7; perl: 4
file content (17 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env ruby
# frozen_string_literal: true

require 'pathname'
require 'rouge'
require 'rouge/cli'
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