feat: add build-stamped version with --version flag and TUI header
Introduce tui.Version (defaults to "dev"), stamped at build time via a VERSION_LDFLAG in the Makefile (-X .../internal/tui.Version=$(VERSION)) across all build targets. main.go handles "--version"/"-v" before launching the TUI, and the version is shown next to the title in the header. Docs updated (README + CLAUDE). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -200,6 +200,15 @@ go build -o installer ./cmd
|
||||
./installer
|
||||
```
|
||||
|
||||
A versão é gravada no binário em tempo de build (`make build VERSION=1.2.0`) e pode ser
|
||||
consultada sem abrir a interface:
|
||||
|
||||
```bash
|
||||
./installer --version # ex.: app-dono installer 1.2.0
|
||||
```
|
||||
|
||||
Um `go build` simples (sem o `Makefile`) deixa a versão como `dev`.
|
||||
|
||||
## Documentação adicional
|
||||
|
||||
- [docs/fluxo.md](docs/fluxo.md) — detalhamento de cada etapa do assistente.
|
||||
|
||||
Reference in New Issue
Block a user