fix: bd onboard hangs on Windows (GH #531)

Added onboard and hooks commands to the noDbCommands list so they
skip database and daemon initialization. These commands don't need
database access - they just output documentation or manage git hooks.

On Windows, if no .beads directory exists, the PersistentPreRun
would attempt database discovery (including git worktree detection)
which could hang due to git command issues.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Steve Yegge
2025-12-13 18:09:09 -08:00
parent fc23dca7fb
commit 6c84d36592
2 changed files with 810 additions and 807 deletions

View File

@@ -215,8 +215,10 @@ var rootCmd = &cobra.Command{
"doctor",
"fish",
"help",
"hooks",
"init",
"merge",
"onboard",
"powershell",
"prime",
"quickstart",