summaryrefslogtreecommitdiff
path: root/Magefile.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-29 00:01:45 +0300
committerPaul Buetow <paul@buetow.org>2025-09-29 00:01:45 +0300
commita42d68e15754ae67d24dd4e76731e937b57e23f9 (patch)
tree429d79b400f072d323613f1ba59ef516f1754ccc /Magefile.go
parentad21f1b972063d2543f402c04a20f32b263e60e1 (diff)
convert to magefilev0.1.1
Diffstat (limited to 'Magefile.go')
-rw-r--r--Magefile.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/Magefile.go b/Magefile.go
new file mode 100644
index 0000000..4320a9e
--- /dev/null
+++ b/Magefile.go
@@ -0,0 +1,25 @@
+//go:build mage
+
+package main
+
+import (
+ "github.com/magefile/mage/sh"
+)
+
+var Default = Build
+
+func Build() error {
+ return sh.RunV("go", "build", "-o", "timr", "./cmd/timr")
+}
+
+func Run() error {
+ return sh.RunV("go", "run", "./cmd/timr")
+}
+
+func Test() error {
+ return sh.RunV("go", "test", "./...")
+}
+
+func Install() error {
+ return sh.RunV("go", "install", "./cmd/timr")
+}