lib/yac.rb in yac-1.2.0 vs lib/yac.rb in yac-1.2.1

- old
+ new

@@ -1,11 +1,12 @@ -$:.unshift File.dirname(__FILE__) +$LOAD_PATH << File.dirname(__FILE__) %w(git fileutils yaml format).each {|f| require f} + module Yac include Format extend self - + VERSION = '1.2.1' YACRC = File.join("#{ENV['HOME']}",".yacrc") FileUtils.cp(File.join(File.dirname(__FILE__), "..","resources","yacrc"), YACRC) unless File.exist?(YACRC) CONFIG = YAML.load_file(File.join(ENV['HOME'],".yacrc")) @@ -28,9 +29,10 @@ when "-e" then edit(args[1,args.size]) when /^(help|-h|yac|--help)$/ then help when "-s" then shell(args[1,args.size]) when "-r" then rm(args[1,args.size]) when "-m" then mv(args[1,args.size]) + when "-v" then colorful("Yac Version: #{Yac::VERSION}",'notice') else show(args) end rescue end