โจ What's new
๐ฟ grove dev โ built-in hot reload
Grove now ships its own hot reload watcher. No Air, no external tools, nothing to install. Run grove dev and Grove will compile, launch, and automatically restart your binary on every .go save.
grove devUnder the hood it uses fsnotify for real OS-level file events (kqueue on macOS, inotify on Linux), a debounce window to collapse burst saves into a single rebuild, and auto-registration of newly created subdirectories at runtime.
Behaviour is fully configurable via the optional [dev] section in grove.toml:
[dev]
root = "."
bin = ".grove/tmp/app"
build_cmd = "go build -o .grove/tmp/app ."
watch_dirs = [".", "internal", "controllers", "models"]
exclude = [".grove", "vendor", "node_modules"]
extensions = [".go"]
debounce_ms = 300All fields are optional โ sensible defaults are used when grove.toml is absent or the [dev] section is omitted.
๐งช grove test -w no longer requires Air
Watch mode for the test suite now delegates directly to gest's own built-in -w flag. Air is no longer a dependency for grove test -w.
grove test -w # watch mode โ no air required
grove test -wc # watch mode + coverage report๐ง New flags for grove make:model
Two shorthand flags make full-stack scaffolding faster:
| Flag | Expands to | Result |
|---|---|---|
-d / --dto
| model + DTO | Scaffold a model and its request/response DTO |
-r / --resource
| model + migration + controller + DTO | Full resource in one command |
grove make:model Post -d # model + DTO
grove make:model Post -r # model + migration + controller + DTO๐ grove -v / grove --version
grove -v
grove --versionPrints the Grove logo and current version. Both flags are equivalent.
๐ Improvements
- Shell completion auto-install โ
grove completion [bash|zsh|fish|powershell]now writes the script to the correct config file automatically, so there's no need to pipe output manually. - gest auto-install โ
grove make:testnow runsgo getautomatically when creating the test entrypoint for the first time, sogrove testworks immediately with zero setup. - CLI help banner โ Commands are grouped into labelled sections (Generators, Testing, Server & Build, Database, Setup) for easier scanning.
๐ฆ Dependency changes
| Package | Change |
|---|---|
github.com/caiolandgraf/gest
| v1.0.0 โ v1.1.0
|
github.com/fsnotify/fsnotify
| Added v1.9.0
|
github.com/BurntSushi/toml
| Added v1.6.0
|
Full Changelog: v1.1.0...v1.2.0