Sha256: 4862bb212956d5436b580b8b7d5308136f1457f733976e97e2f9d12ecb2b7779
Contents?: true
Size: 942 Bytes
Versions: 1
Compression:
Stored size: 942 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'fontlike' options = {} OptionParser.new do |opts| opts.banner = "Usage: circle [options]" opts.on("-f", "--fancy", "Get fancy") do |f| options[:style] = :fancy end opts.on("-a", "--angry", "Get angry") do |s| options[:style] = :shout end opts.on("-m", "--mono", "Get oldschool") do |m| options[:style] = :mono end opts.on("-c", "--circle", "Get circled?") do |c| options[:style] = :circle end opts.on("-s", "--sans-serif", "Get attractive") do |ss| options[:style] = :sans_serif end opts.on("-ds", "--double-struck", "Get struck") do |ds| options[:style] = :double_struck end opts.on("-r", "--random", "Get random") do |r| options[:style] = :random end end.parse! transmuter = Fontlike::Transmuter.new(options) copy = transmuter.transmute(ARGV.join(" ")) puts "--> Copied \"#{copy}\" to clipboard" %x(echo #{copy} | pbcopy)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fontlike-0.0.3 | bin/fontlike |