File: rougify

package info (click to toggle)
ruby-rouge 3.21.0-1~bpo10%2B1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 6,044 kB
  • sloc: ruby: 32,077; sed: 2,071; perl: 132; makefile: 7
file content (17 lines) | stat: -rwxr-xr-x 342 bytes parent folder | download | duplicates (6)
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