Skip to content

spin v0.0.2-alpha

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 22 Jul 05:06

spin v0.0.2-alpha

The one where spin new stops blindly running shell scripts.

Interactive hook review

2026-07-22T05-19-41-911Z.mp4

spin new now has a second TUI step after the params form. Before any hook
runs, you see a scrollable list of every [[pre]] and [[post]] command
the template will execute. Press R to open a Run / Skip / Cancel modal.
No shell command runs without your review.

The right pane streams live output with ANSI coloring, tree-styled headers,
and proper wrapping. No more curl | sh anxiety.

Templated prompts and defaults

Params can now reference other values in their prompts and defaults:

[params]
project_name = { type = "text", prompt = "Project name" }
module       = { type = "text", default = "github.com/me/{{ .project_name }}" }

The TUI form also opens pre-filled with name, project_name, and any
--param values you pass, matching the non-interactive path.

Shared hook output

Hook output in the TUI now uses tree-styled headers and dim indented
lines (├── pre-hook, continuation) instead of raw log output. The
tree writer is shared between TUI and CLI paths.

image

Fixes

  • Registry and pin updates now report "already up to date" instead of
    silently succeeding.
image
  • Select params reject defaults outside the option list.
  • min_spin_version check handles development builds (no more false
    rejections from go test or dirty working trees).

Under the hood

  • Bubble Tea upgraded to v2.0.8.
  • Template helper functions (upper, lower, snake_case, etc.) moved
    into internal/params for shared use across the codebase.
  • Version command improved — derives correct version from build info when
    installed via go install, falls back to devel for local builds.

Released 2026-07-22T05:05:51Z.

Changelog

  • c406568 FORMAAAAAAAAAAAT
  • bea70bc better version code thanks @charmbracelet/crush <:
  • 2c9234c chore(deps): bump charm.land/bubbletea/v2 from 2.0.7 to 2.0.8 (#5)
  • 6d6e190 feat(cmd): add interactive hooks review TUI for spin new
  • daf3f50 feat: render param prompts and defaults as templates
  • 5d7ea3e feat: seed builtins and --param values into the TUI form
  • d6a1517 fix for ci <:
  • 42fae93 fix the wrong stuff i made while merging conflicts <:
  • 00b08d7 fix version command and updated goreleaser/taskfile
  • 50854a8 fix(cmd): polish hooks TUI with wrapping, Cancel, and layout constants
  • cdb52c0 fix(registry): report "already up to date" for unchanged registries
  • cab2dbb fix(update): report "already up to date" when a pin is unchanged
  • 0988f1b fix: apply CodeRabbit auto-fixes
  • 83c3cc6 fix: reject select defaults outside option list
  • 1b8d6e0 fixed the stuff coderabbit said it but in better way <:
  • ebb7d61 formating
  • e4e528c go mod tidy <:
  • 28d5c28 min spin version isnt needed today
  • d095ef5 refactor(cmd): extract shared hook tree writer and StepStart callback
  • f531584 refactor: consume shared FuncMap from internal/params
  • d64e0c6 refactor: move template helpers to internal/params
  • 0372af4 sanity readme comments formatting XDDDD
  • eacdb8d static check stuff
  • d360e85 update readme.

Install

go install github.com/N1xev/spin@v0.0.2-alpha

Or download a binary below.