github.com/kamontat/dot-github@v1.2.0/Guardfile (about) 1 guard :shell do 2 watch /\.go$/ do |m| 3 puts "\033[93m#{Time.now}: #{File.basename m[0]}\033[0m" 4 case m[0] 5 when /_test\.go/ 6 system "go test #{m[0]} #{Dir['*.go'].reject{|p| p.end_with? '_test.go'}.join(' ')}" 7 else 8 system "go build" 9 end 10 end 11 end