breakout commit

This commit is contained in:
rkiel
2015-06-06 07:16:32 -04:00
parent a68a450006
commit db0a6f5501
3 changed files with 38 additions and 7 deletions

View File

@@ -1,9 +1,10 @@
#!/usr/bin/env ruby
raise "USAGE: commit [word....]" unless ARGV.size > 0
require_relative '../lib/commit/commander'
comment = ARGV.reject { |x| x == '-m' }.join(' ')
command = "git commit -m \"#{comment}\""
exec command
commander = Commit::Commander.new(ARGV)
if commander.valid?
commander.execute
else
commander.help
end