From 06ba3e65559201ef695e541294a89da9e2467ea7 Mon Sep 17 00:00:00 2001 From: rhysd Date: Wed, 2 Oct 2024 22:00:24 -0700 Subject: [PATCH] remove outdated Guardfile --- Guardfile | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 Guardfile diff --git a/Guardfile b/Guardfile deleted file mode 100644 index a2a1f9a..0000000 --- a/Guardfile +++ /dev/null @@ -1,18 +0,0 @@ -def run(cmdline) - puts "+#{cmdline}" - system cmdline -end - -guard :shell do - watch /\.go$/ do |m| - puts "#{Time.now}: #{m[0]}" - case m[0] - when /_test\.go$/ - parent = File.dirname m[0] - sources = Dir["#{parent}/*.go"].reject{|p| p.end_with? '_test.go'}.join(' ') - run "go test -v #{m[0]} #{sources}" - else - run 'go build' - end - end -end