Sha256: 148aff6a6c53dffabb2116ed96cb6b91311d27a3157a2efeae2542807f03236b
Contents?: true
Size: 381 Bytes
Versions: 7
Compression:
Stored size: 381 Bytes
Contents
#!/usr/bin/env ruby require 'rubygems' lib_dir = File.join(File.dirname(__FILE__), '..', 'lib') $LOAD_PATH.unshift lib_dir if File.directory?(lib_dir) require 'mdify' def print_usage puts "usage: mdify file" exit(-1) end print_usage if ARGV.empty? file = ARGV.first if File.exists?(file) Mdify.preview(file) else puts "mdify: #{file}: No such file or directory" end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
mdify-1.2.0 | bin/mdify |
mdify-1.1.0 | bin/mdify |
mdify-1.0.2 | bin/mdify |
mdify-1.0.1 | bin/mdify |
mdify-1.0.0 | bin/mdify |
mdify-0.4 | bin/mdify |
mdify-0.3 | bin/mdify |