Sha256: f7a9dccad989a19d574d6bcdb47b5da3bf737e80c07436c9a3677899480eafec
Contents?: true
Size: 687 Bytes
Versions: 5
Compression:
Stored size: 687 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift(File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))) require 'toadie' require 'slop' require 'json' opts = Slop.parse do banner "Toadie, todo grepper, blamer, analyzer\n" on :c, :config, 'Configuration file', :argument => :optional end # puts opts.help # # if ARGV is `--name Lee -v` # opts.verbose? #=> true # opts.password? #=> false # opts[:name] #=> 'lee' config_file = opts[:config] || File.join(Toadie.root, '.toadie.json') if File.exist?(config_file) config = JSON.parse(File.read(config_file)) Array(config["authors"]).each do |attributes| Toadie::Author.create(attributes) end end Toadie::Run.new.start
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
toadie-0.0.5 | bin/toadie |
toadie-0.0.4 | bin/toadie |
toadie-0.0.3 | bin/toadie |
toadie-0.0.2 | bin/toadie |
toadie-0.0.1 | bin/toadie |