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> |
||
|---|---|---|
| .. | ||
| bd | ||