Sha256: 86d0bca0a95847193e068aa1ce5765c5ef7750f5402761205f18cc25fa31f2c7
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
module Tmg class CLI < Thor desc 'wiki', 'Open browser to gem\'s wiki' # Open browser and navigates to gem's wiki def wiki(gem) wiki_uri = Gems.info(gem)['wiki_uri'] if wiki_uri.nil? || wiki_uri.empty? puts "No wiki page for ".red.bold + gem.yellow.bold exit(1) else puts 'Opening wiki for: '.green.bold + gem Launchy.open(wiki_uri) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tmg-0.5.5 | lib/tmg/cli/wiki.rb |
tmg-0.5.4 | lib/tmg/cli/wiki.rb |