-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
47 lines (40 loc) · 940 Bytes
/
Copy pathTaskfile.yml
File metadata and controls
47 lines (40 loc) · 940 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
version: '3'
tasks:
default:
deps: [build]
build:
desc: Build all commands in cmd/ into bin/
sources:
- cmd/**/*.go
- internal/**/*.go
generates:
- bin/wfinfo-go
cmds:
- mkdir -p bin
- go build -o bin/wfinfo-go ./cmd/wfinfo-go
test:
desc: Run tests
cmds:
- go test -v ./internal/... -count=1
run:
desc: Run the wfinfo-go binary
deps: [build]
cmds:
- ./bin/wfinfo-go
clean:
desc: Clean build artifacts
cmds:
- rm -rf bin
install:
desc: Install the binary (defaults to /usr/local/bin)
deps: [build]
vars:
PREFIX: '{{default "/usr/local" .PREFIX}}'
cmds:
- sudo install -D bin/wfinfo-go {{.PREFIX}}/bin/wfinfo-go
uninstall:
desc: Uninstall the binary (defaults to /usr/local/bin)
vars:
PREFIX: '{{default "/usr/local" .PREFIX}}'
cmds:
- sudo rm -f {{.PREFIX}}/bin/wfinfo-go