How to build, run and check azt, and where its code lives. How to propose a change is in CONTRIBUTING.md; how a release is made is in releasing.md.
- Go, at least the version named in
go.mod. - The Azure CLI, signed in with
az login. azt reads with that account. - For
make lint: golangci-lint, the version named in the Makefile. CI runs the same one. - For
make dist: goreleaser, the version named in.tool-versions, and syft for the SBOMs.
az login
make runmake run builds bin/azt and starts it.
make check # fmt, vet, lint, licenses, test, test on the oldest Go, build
make dist # the whole release, published nowheremake test-min-goruns the tests on the go line ofgo.mod, the oldest Go azt supports. Go downloads that toolchain the first time.make licensesfails when a module azt links has a license outside the list ininternal/licenses;make noticesalso writesTHIRD_PARTY_NOTICES, which the release ships.make distskips signing: that needs the release workflow.
Every push runs the same checks in CI: lint and licenses on Linux, the tests
on Linux, macOS and Windows with the newest Go and on Linux with the oldest
one, govulncheck, and the same release snapshot as make dist.
| Path | What it holds |
|---|---|
cmd/azt |
the main package |
internal/azure |
Resource Graph queries and Resource Manager GET requests |
internal/ui |
the Bubble Tea interface: tabs, panes, dialogs, help, mouse |
internal/ui/views |
the views a pane can show, one file per resource kind |
internal/ui/data |
fetches Azure data for the views and caches it |
internal/ui/sidebar |
the explorer tree |
internal/layout |
the immutable split tree of panes |
internal/session |
saves the layout on exit and reads it on start |
internal/version |
what the build stamps into the binary |
internal/licenses |
checks the licenses of linked modules and writes the notices; not linked into azt |
internal/buildconfig |
tests that the Makefile, .goreleaser.yaml and the workflows agree |