init: full TUI configuration wizard with live source preview (#29) #37

Merged
KofTwentyTwo merged 17 commits from feature/GH-29-init-tui-wizard into develop 2026-06-09 15:17:56 +00:00
KofTwentyTwo commented 2026-06-09 12:47:18 +00:00 (Migrated from github.com)

Closes #29.

Redesigns init from the prompt-by-prompt flow into a full-screen Bubble Tea wizard with an adaptive live preview of the header that will be written.

What's in this PR

  • init opens a full-screen wizard with steps for project model, license, identity, header style, license-file handling, coverage, and a final review.
  • Live example-source previews for 15 language families, plus a .license-tool.yaml preview and a C fallback when no supported source language is detected.
  • Persisted include config support, wired through audit, apply, license, and init.
  • Wizard logic lives in internal/initwizard (100% covered); cmd/.../wizard.go is a thin adapter.

Testing

  • Full gate green: gofmt, go vet, golangci-lint (0 issues), go test ./... -race, and the 100% coverage threshold.

Notes

  • Independent of #35 (audit reporting), which targets develop separately; the two branches touch different code.
  • Commit bafa281 bundled some planning docs via git add -A; left as-is (no autonomous history rewrite) — can be tidied on request before merge.
Closes #29. Redesigns `init` from the prompt-by-prompt flow into a full-screen Bubble Tea wizard with an adaptive live preview of the header that will be written. ## What's in this PR - `init` opens a full-screen wizard with steps for project model, license, identity, header style, license-file handling, coverage, and a final review. - Live example-source previews for 15 language families, plus a `.license-tool.yaml` preview and a C fallback when no supported source language is detected. - Persisted `include` config support, wired through audit, apply, license, and init. - Wizard logic lives in `internal/initwizard` (100% covered); `cmd/.../wizard.go` is a thin adapter. ## Testing - Full gate green: `gofmt`, `go vet`, `golangci-lint` (0 issues), `go test ./... -race`, and the **100% coverage** threshold. ## Notes - Independent of #35 (audit reporting), which targets `develop` separately; the two branches touch different code. - Commit `bafa281` bundled some planning docs via `git add -A`; left as-is (no autonomous history rewrite) — can be tidied on request before merge.
Sign in to join this conversation.