Permalink
Browse files

Refactored all plugin, option, output, and cmdline stuff to FlogCLI.

Resorted methods in Flog as they got messy.

[git-p4: depot-paths = "//src/flog/dev/": change = 8393]
  • Loading branch information...
zenspider committed Apr 10, 2013
1 parent 9ec60a5 commit 6357978a44bdf4041ab963e49b9dc6c7bb684391
Showing with 524 additions and 464 deletions.
  1. +2 −0 Manifest.txt
  2. +4 −5 bin/flog
  3. +56 −256 lib/flog.rb
  4. +237 −0 lib/flog_cli.rb
  5. +16 −203 test/test_flog.rb
  6. +209 −0 test/test_flog_cli.rb
View
@@ -5,6 +5,8 @@ README.txt
Rakefile
bin/flog
lib/flog.rb
+lib/flog_cli.rb
lib/flog_task.rb
lib/gauntlet_flog.rb
test/test_flog.rb
+test/test_flog_cli.rb
View
@@ -1,15 +1,14 @@
#!/usr/local/bin/ruby -w
-require 'optparse'
-require 'flog'
+require "flog_cli"
-Flog.load_plugins
+FlogCLI.load_plugins
-options = Flog.parse_options ARGV
+options = FlogCLI.parse_options ARGV
ARGV << "-" if ARGV.empty?
-flogger = Flog.new options
+flogger = FlogCLI.new options
flogger.flog ARGV
flogger.report
Oops, something went wrong.

0 comments on commit 6357978

Please sign in to comment.