Sha256: c11ea3302686fe33535303adfea38e906213e9c69f00747a633e70a42241847a
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
#! /usr/bin/env ruby Main { argument('tag'){ optional true default false } option('--launchy', '-l'){ description 'open url with launchy gem' default false } def run begin if params['launchy'].given? then Fukung.goto_one( params['tag'].value ) else puts Fukung.one( params['tag'].value ) end rescue => e $stderr.puts e $stderr.puts e.backtrace if $VERBOSE or Fukung::Debug exit 1 end end } BEGIN { begin require 'rubygems' rescue LoadError end require 'fukung' require 'main' require 'launchy' }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fukung-2.0.0 | bin/fukung |
fukung-1.1.0 | bin/fukung |