-
Notifications
You must be signed in to change notification settings - Fork 3
/
.air.toml
57 lines (52 loc) · 1.78 KB
/
.air.toml
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
55
56
57
root = "."
testdata_dir = "testdata"
tmp_dir = "tmp"
[build]
args_bin = []
bin = "./tmp/overmind"
# build with additional flags for debugging
# cmd = "go generate ./... && go build -gcflags='all=-N -l' -o ./tmp/overmind main.go"
cmd = "go generate ./... && cp $(which terraform) main.tf ./tmp/ && go build -o ./tmp/overmind main.go"
delay = 1000
exclude_dir = ["assets", "build", "tmp", "vendor", "test", "testdata"]
exclude_file = ["server/admin/assets/dist.css"]
exclude_regex = [
"_test\\.go",
"_templ\\.go",
"\\.sql\\.go",
".*models/(models|copyfrom|db).go",
"tfutils",
]
exclude_unchanged = false
follow_symlink = false
# contrary to other repos, this does wait for the debugger to attach, as cli processes are very shortlived
# full_bin = "dlv exec --accept-multiclient --continue --headless --listen :9087 --api-version 2 ./tmp/overmind -- terraform plan"
# full_bin = "dlv exec --accept-multiclient --headless --listen :9087 --api-version 2 ./tmp/overmind -- terraform plan"
full_bin = "docker run --rm -e AWS_PROFILE=sso-david -e OVM_API_KEY -e APP=https://df.overmind-demo.com -e CLI_AUTH0_DOMAIN -e CLI_AUTH0_CLIENT_ID -e RESET_STORED_CONFIG=true -e TEABUG=true -e LOG=trace -v $PWD:/vhs -v ~/.aws:/root/.aws ghcr.io/charmbracelet/vhs /vhs/demos/plan.tape && echo Done && code demos/plan.gif"
include_dir = []
include_ext = ["go", "tpl", "tmpl", "templ", "html", "sql", "css", "md", "tape"]
include_file = ["sqlc.yaml"]
kill_delay = "0s"
log = "build-errors.log"
poll = false
poll_interval = 0
post_cmd = []
pre_cmd = []
rerun = false
rerun_delay = 500
send_interrupt = false
stop_on_error = true
[color]
app = ""
build = "yellow"
main = "magenta"
runner = "green"
watcher = "cyan"
[log]
main_only = false
time = false
[misc]
clean_on_exit = false
[screen]
clear_on_rebuild = false
keep_scroll = true