beads/cmd
beads/crew/lizzy d182aa0ea1 hygiene: extract requireFreshDB to eliminate staleness boilerplate
The ensureDatabaseFresh + daemonClient nil check + error handling
pattern was duplicated across 16 command files with inconsistent
error handling (some used FatalErrorRespectJSON, others fmt.Fprintf).
Extracted into requireFreshDB() wrapper that standardizes on
FatalErrorRespectJSON for consistent --json support.

Closes dolt-test-7y4

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 18:20:28 -08:00
..
bd hygiene: extract requireFreshDB to eliminate staleness boilerplate 2026-02-07 18:20:28 -08:00