github caiolandgraf/grove v1.2.2
v1.2.2 - 🌿 `grove dev` β€” πŸ’… Visual overhaul β€” `grove dev` & `grove build

latest releases: v1.5.5, v1.5.4, v1.5.3...
one month ago

πŸ’… Visual overhaul β€” grove dev & grove build

This release replaces the plain-text output of both grove dev and grove build with a consistent badge-based UI, matching the visual language of gest.


grove dev

State Before After
Watching 🌿 Grove dev plain bold text GROVE DEV green badge
Rebuild triggered πŸ”¨ Recompilando… cyan text RE-BUILDING blue badge
Build error ERRO ❌ Build error: + dim exit status BUILD FAILED red badge
Success OK βœ… App reiniciado APP RESTARTED green badge + elapsed time
Stopped plain text GROVE DEV green badge + stopped.

Compiler output is now processed line by line:

  • Package header lines (# module/pkg) β†’ gray + dim β€” contextual, not competing with the errors
  • Error lines β†’ fully red, each prefixed with a Γ— symbol β€” identical to gest's failure output

grove build

Same treatment applied to grove build:

  • Header replaced with a BUILDING blue badge + the build command in gray
  • Compiler errors use the same line-aware colorizer (Γ— red prefix, gray package headers)
  • On failure: BUILD FAILED red badge β€” no more redundant βœ• build failed: exit status 1 from cobra

⚑ grove dev β€” debounce reduced to 50 ms

The rebuild delay dropped from 300 ms β†’ 50 ms. Changes trigger a rebuild almost instantly after saving.

The debounce_ms field in grove.toml remains configurable if you need to increase it for slower machines or monorepos.


πŸ”§ Internal

  • buildOutputWriter extracted to helpers.go as a shared utility β€” both grove dev and grove build use the same colorizer
  • New badge(bg, label) helper added to helpers.go for consistent badge rendering across all commands
  • main.go no longer double-prints an error when a command has already handled its own error display

Full Changelog: v1.2.1...v1.2.2

Don't miss a new grove release

NewReleases is sending notifications on new releases.