fix: Handle .beads/redirect files and limit verbose output in bd doctor --fix
- Add resolveBeadsDir helper to fix/common.go to follow redirect files - Update OrphanedDependencies, ChildParentDependencies, and MergeArtifacts to use resolveBeadsDir instead of hardcoded .beads path - Add --verbose/-v flag to bd doctor command - Only print individual items if verbose or count < 20, always show summary (bd-dq74, bd-v55y) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,7 @@ var (
|
||||
doctorDryRun bool // preview fixes without applying
|
||||
doctorOutput string // export diagnostics to file
|
||||
doctorFixChildParent bool // opt-in fix for child→parent deps
|
||||
doctorVerbose bool // show detailed output during fixes
|
||||
perfMode bool
|
||||
checkHealthMode bool
|
||||
doctorCheckFlag string // run specific check (e.g., "pollution")
|
||||
@@ -217,6 +218,7 @@ func init() {
|
||||
doctorCmd.Flags().BoolVarP(&doctorInteractive, "interactive", "i", false, "Confirm each fix individually")
|
||||
doctorCmd.Flags().BoolVar(&doctorDryRun, "dry-run", false, "Preview fixes without making changes")
|
||||
doctorCmd.Flags().BoolVar(&doctorFixChildParent, "fix-child-parent", false, "Remove child→parent dependencies (opt-in)")
|
||||
doctorCmd.Flags().BoolVarP(&doctorVerbose, "verbose", "v", false, "Show detailed output during fixes (e.g., list each removed dependency)")
|
||||
}
|
||||
|
||||
func runDiagnostics(path string) doctorResult {
|
||||
|
||||
Reference in New Issue
Block a user