-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
49 lines (41 loc) · 737 Bytes
/
Taskfile.yaml
File metadata and controls
49 lines (41 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: '3'
vars:
BINARY: sp
tasks:
default:
desc: Build the application
cmds:
- task: build
build:
desc: Build the binary
cmds:
- go build -o {{.BINARY}} .
sources:
- '*.go'
- go.mod
- go.sum
generates:
- '{{.BINARY}}'
run:
desc: Build and run the application
deps: [build]
cmds:
- ./{{.BINARY}}
clean:
desc: Remove build artifacts
cmds:
- rm -f {{.BINARY}}
fmt:
desc: Format Go code
cmds:
- go fmt ./...
tidy:
desc: Tidy Go modules
cmds:
- go mod tidy
install:
desc: Install to ~/.local/bin
deps: [build]
cmds:
- mkdir -p ~/.local/bin
- cp {{.BINARY}} ~/.local/bin/