-
-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathTaskfile.yml
More file actions
36 lines (30 loc) · 597 Bytes
/
Taskfile.yml
File metadata and controls
36 lines (30 loc) · 597 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
version: "3"
tasks:
default:
cmd: task --list
lint:
desc: Run golangci-lint
cmds:
- golangci-lint run
sources:
- "**/*.go"
- ".golangci.yml"
- "go.mod"
- "go.sum"
format:
desc: Format code
cmd: golangci-lint fmt
sources:
- "**/*.go"
- ".golangci.yml"
build:
desc: Build the application binary
cmd: go build -o demoit
run:
desc: Run the application
deps: ["build"]
cmd: ./demoit {{.CLI_ARGS}}
run-dev:
desc: Run with live reload
deps: ["build"]
cmd: ./demoit -dev {{.CLI_ARGS}}