Sha256: 4f970c24e04b7f115a35700d5fdf03d0bae5d512b30974fc318e9900f4a1d13a
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
#!/usr/bin/env ruby require 'rvnc' require 'optparse' require 'terminal-table' options = {} OptionParser.new do |opt| opt.banner = 'Usage: rvnc [options] filepath' opt.on('-v', '--version', 'display the version.') { options[:version] = true } opt.parse!(ARGV) end case when options[:version] puts "RVNC version: #{RVNC::VERSION}" else result = RVNC.collect(ARGV.first) table = Terminal::Table.new(rows: result.map(&:values), headings: ['Name', 'Location']) puts table end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rvnc-0.0.1 | exe/rvnc |