Sha256: 7cbff04e11d290cc707e9d46404292a91e73174b596d8d2f939bb4af66f6fb3a
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
module Pair class Cli class Notify < self def run! parse! Notification.dispatcher.gntp_notify(options) end def parse! opts = parse do |opts| opts.banner = "Usage #{$0.split("/").last} notify" + "\n\n" + "Options:" + "\n" opts.on("-t", "--title title") do |title| options[:title] = title end opts.on("-n", "--notification name") do |name| options[:name] = name end opts.on("-m", "--message text") do |text| options[:text] = text end opts.on("-i", "--icon url") do |url| options[:icon] = url end opts.on("-s", "--sticky") do options[:sticky] = true end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pair-0.0.4 | lib/pair/cli/notify.rb |