Skip to content

Commit 3fd382f

Browse files
committed
$ github-markup FILE.md
1 parent d8d6cbb commit 3fd382f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

bin/github-markup

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env ruby
2+
3+
$LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
4+
require 'github/markup'
5+
6+
if ARGV[0] && File.exists?(file = ARGV[0])
7+
puts GitHub::Markup.render(file)
8+
else
9+
puts "usage: #$0 FILE"
10+
end

0 commit comments

Comments
 (0)