Sha256: e911365cf507e05b550eed20d63e057568810fcf7a3c1f55848dacf549df3e24
Contents?: true
Size: 1.11 KB
Versions: 1
Compression:
Stored size: 1.11 KB
Contents
#!/usr/bin/env ruby # -*- coding: utf-8 -*- require_relative "../lib/kagami" program = File.basename($PROGRAM_NAME) USAGE = <<-EOD usage: #{program} text example: $ #{program} "Java and you >>>> Ruby >>> The internet" The internet >>> Ruby >>>> Java and you $ #{program} <<END Firewall || +--------+ +-------+ || The Internet | server +--+ proxy +----||======☁======= +--------+ +-------+ || || END Firewall || The Internet || +-------+ +--------+ =======☁======||----+ proxy +--+ server | || +-------+ +--------+ || $ apt-get moo | #{program} )__( )oo( /\------/ || | / \/---\/ * ~~ ~~ ..."Have you mooed today?".... EOD # When no args on interactive shell if $stdin.tty? && ARGV.empty? puts USAGE exit 1 end # Fetch source text source = ARGV.shift || ARGF.read Kagami.run(source)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kagami-0.1.5 | bin/kagami |