Sha256: 127fd4d91d27959f0ce87f880924f549def96fabf84018602cb4ee28edff5650
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' $:.unshift File.expand_path("#{File.dirname(__FILE__)}/../lib") require 'git_meta' options = {:command => ARGV.shift || "get", :sha => ARGV.shift, :key => nil} optparser = OptionParser.new do |parser| parser.banner = "Usage: git-meta get [ sha | ref ] [ --get KEY ]" parser.on('-g', '--get KEY', "Retrives a certain KEY from the git commit object") do |key| options[:key] = key end parser.on('-h', '--help', "Returns Usage Notes") do puts parser exit end end if !options[:sha] puts optparser exit end optparser.parse(ARGV) @getter = GitMeta::Get.new(options[:sha], options[:key]) puts @getter
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git-meta-2.0.0 | bin/git-meta |