-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.pace
More file actions
54 lines (46 loc) · 930 Bytes
/
config.pace
File metadata and controls
54 lines (46 loc) · 930 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
50
51
52
53
54
default build
task build {
command "go build -o bin/pace ./cmd\pace"
description "Build the application"
inputs ["**/*.go", "go.mod", "go.sum"]
outputs ["bin/pace"]
cache true
}
task run {
command "go run ./cmd\pace"
description "Run the application"
inputs ["**/*.go"]
watch true
}
task test {
command "go test ./..."
description "Run tests"
inputs ["**/*.go"]
cache true
}
task tidy {
command "go mod tidy"
description "Tidy go.mod and go.sum"
inputs ["go.mod"]
}
task vet {
command "go vet ./..."
description "Run go vet"
inputs ["**/*.go"]
cache true
}
hook clean {
command "if exist bin rmdir /s /q bin"
description "Clean build artifacts"
}
hook fmt {
command "go fmt ./..."
description "Format code"
}
task arg {
command "go mod $arg"
description "Run go mod with specified arguments"
args {
required ["arg"]
}
}