File: github-markup

package info (click to toggle)
ruby-github-markup 1.5.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 336 kB
  • ctags: 118
  • sloc: ruby: 373; python: 113; sh: 21; makefile: 15
file content (10 lines) | stat: -rwxr-xr-x 212 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env ruby

$LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
require 'github/markup'

if ARGV[0] && File.exists?(file = ARGV[0])
  puts GitHub::Markup.render(file)
else
  puts "usage: #$0 FILE"
end