Sha256: 292aeff3f0216b4e5db194854e995b3dd49259e70cca8c220e0538150abf7fd8
Contents?: true
Size: 545 Bytes
Versions: 3
Compression:
Stored size: 545 Bytes
Contents
#!/usr/bin/env ruby require 'githubchart' require 'optparse' options = {} OptionParser.new do |opts| opts.banner = "Usage: githubchart (-u username) (-t type) path/for/new/image\n" opts.banner << 'Supported types: ' + GithubChart.supported.join(' ') opts.on('-uUSER', '--user=USER') { |user| options[:user] = user } end.parse! SVG_Path = ARGV.shift if SVG_Path.nil? puts 'Please provide the target location for the SVG' exit 1 end Chart = GithubChart.new(options[:user]).svg File.open(SVG_Path, 'w') { |file| file << Chart }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
githubchart-0.0.5 | bin/githubchart |
githubchart-0.0.4 | bin/githubchart |
githubchart-0.0.3 | bin/githubchart |