bin/pairsee in pair_see-0.1.4 vs bin/pairsee in pair_see-0.1.5

- old
+ new

@@ -1,12 +1,13 @@ #!/usr/bin/env ruby require_relative '../lib/pair_see/seer' +require_relative '../lib/pair_see/person' require 'trollop' +require 'pry' opts = Trollop.options do - opt :root, 'Folder in which .git folder is', default: '.' opt :config, 'location of config file, example: ../../config/config.yml', default: "config/config.yml" opt :after, 'Date since which you want to get commits, in yyyy-mm-dd format', default: '0-1-1' opt :extras, 'See all commits without the name of any dev in them', default: false opt :latest, 'See dates of most recent commits by pairs', default: false opt :recommended, 'See active devs who have not paired (and therefore should)', default: false @@ -16,17 +17,17 @@ def run_command(opts) begin config = YAML.load_file(opts[:config]) rescue - puts "Config file not found at: " + opts[:config] + " See config/config.yml.sample for an example. ....exiting" + puts "Config file not found at: " + opts[:config] + " See config/config.yml.sample for an example. \n...exiting" exit end options = { - names: config['names'].split(' '), + names: config['names'].map {|i| PairSee::Person.new(i.split(' '))}, # todo rename "names" to "people" card_prefix: config['card_prefix'], after_date: opts[:after], - repo_location: opts[:root] + repo_locations: config['roots'] } seer = PairSee::Seer.new(options) if opts[:extras] seer.commits_not_by_known_pair