summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-25 22:45:26 +0300
committerPaul Buetow <paul@buetow.org>2025-06-25 22:45:26 +0300
commit17f7367b0a3aac087b36218fcfb0e79851c9e475 (patch)
tree2bf2ecd14abd3adbb536956891a5355bd7d5659f
parent804ad8450fcfdd0e5e89c239422f3f93002eef41 (diff)
fix
-rw-r--r--Taskfile.yaml15
-rw-r--r--cmd/timr/main.go4
2 files changed, 10 insertions, 9 deletions
diff --git a/Taskfile.yaml b/Taskfile.yaml
index 22af7b2..0adfee8 100644
--- a/Taskfile.yaml
+++ b/Taskfile.yaml
@@ -1,14 +1,15 @@
-version: "3"
+version: '3'
tasks:
default:
cmds:
- - go build ./cmd/timr
-
- install:
+ - go build -o timr ./cmd/timr
+ run:
cmds:
- - go install ./cmd/timr
-
+ - go run ./cmd/timr
test:
cmds:
- - go test -v ./...
+ - go test ./...
+ install:
+ cmds:
+ - go install ./cmd/timr
diff --git a/cmd/timr/main.go b/cmd/timr/main.go
index fb28618..554d1ca 100644
--- a/cmd/timr/main.go
+++ b/cmd/timr/main.go
@@ -5,7 +5,7 @@ import (
"fmt"
"os"
- "codeberg.org/snonux/timr/internal/version"
+ "codeberg.org/snonux/timr/internal"
)
func main() {
@@ -13,7 +13,7 @@ func main() {
flag.Parse()
if *versionFlag {
- fmt.Println(version.Version)
+ fmt.Println(internal.Version)
os.Exit(0)
}
}