Go CLI for the Hostinger API. Client is generated from api.json by
oapi-codegen; everything in internal/api/zz_generated.go is rebuilt — do
not hand-edit it.
make build/make test/make generate/make update-spec./bin/hostinger-cli describe— emit full command tree as JSONmake snapshot— GoReleaser dry-run (no publish)
internal/api/— generated client + transport (auth/retry/UA)internal/clictx/— bridge so subcommand packages can read root state without importing theclipackage (avoids import cycle)internal/output/— TTY-detected table/json/yaml/template + gojq filterinternal/poll/— generic--waitpoller for VPS action resourcesinternal/cli/<tag>/— one package per API tag (billing/dns/domains/…)
dprotaso/go-yitis silently pinned ingo.mod. Bumping it pulls theyaml/v4RC and breaksvmware-labs/yaml-jsonpath→make generatefails. Re-pin:v0.0.0-20220510233725-9ba8df137936.internal/api/tools.gois//go:build tools— keepsoapi-codegenas a tool dep without leaking into the binary. Don't remove.- Upstream serves the spec as JSON only at
https://developers.hostinger.com/openapi/openapi.json. No YAML endpoint.