-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathair.toml
More file actions
37 lines (28 loc) · 799 Bytes
/
air.toml
File metadata and controls
37 lines (28 loc) · 799 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
# .air.toml
# Final configuration, explicitly using .exe for Windows.
root = "."
tmp_dir = "tmp"
[build]
# Explicitly build the .exe file on Windows.
cmd = "go build -o build/go-service.exe ./cmd/main.go"
# The binary to run, now with the correct .exe extension.
bin = "build/go-service.exe"
# Exclude directories to prevent loops and unnecessary watching.
exclude_dir = ["tmp", "build", "vendor", "test", "scripts", "docker", ".git", "docs"]
include_ext = ["go", "toml", "yaml"]
exclude_regex = ["_test.go"]
# Standard settings.
delay = 1000
stop_on_error = true
log = "air-build-errors.log"
[color]
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
time = true
[misc]
clean_on_exit = false
[screen]
clear_on_rebuild = true