Skip to content

Commit

Permalink
Merge pull request #237 from overmindtech/bubbletea
Browse files Browse the repository at this point in the history
Port terraform plan and terraform apply to charmbracelet/bubbletea
  • Loading branch information
DavidS-ovm authored Apr 12, 2024
2 parents fa741e1 + cb1eb98 commit 12b9c37
Show file tree
Hide file tree
Showing 14 changed files with 1,785 additions and 682 deletions.
12 changes: 8 additions & 4 deletions .air.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ tmp_dir = "tmp"

[build]
args_bin = []
bin = "./tmp/main"
cmd = "go generate ./... && go build -gcflags='all=-N -l' -o ./tmp/main main.go"
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"]
Expand All @@ -19,9 +21,11 @@ exclude_regex = [
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 --headless --listen :9087 --api-version 2 ./tmp/main --"
# 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 --tty /dev/pts/3 ./tmp/overmind -- terraform plan"
full_bin = "docker run --rm -e AWS_PROFILE=sso-david -e OVM_API_KEY -e APP -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 && code demos/plan.gif"
include_dir = []
include_ext = ["go", "tpl", "tmpl", "templ", "html", "sql", "css", "md"]
include_ext = ["go", "tpl", "tmpl", "templ", "html", "sql", "css", "md", "tape"]
include_file = ["sqlc.yaml"]
kill_delay = "0s"
log = "build-errors.log"
Expand Down
Loading

0 comments on commit 12b9c37

Please sign in to comment.