Show dependency status in bd show output
- Add status display (open/closed/in_progress/blocked) for dependencies and dependents - Improves quick progress tracking and context rebuilding for AI agents - Fixes GH-226
This commit is contained in:
@@ -170,17 +170,17 @@ var showCmd = &cobra.Command{
|
|||||||
if len(details.Dependencies) > 0 {
|
if len(details.Dependencies) > 0 {
|
||||||
fmt.Printf("\nDependencies (%d):\n", len(details.Dependencies))
|
fmt.Printf("\nDependencies (%d):\n", len(details.Dependencies))
|
||||||
for _, dep := range details.Dependencies {
|
for _, dep := range details.Dependencies {
|
||||||
fmt.Printf(" [%s] %s: %s [P%d]\n",
|
fmt.Printf(" [%s] %s (%s): %s [P%d]\n",
|
||||||
formatDependencyType(dep.DependencyType),
|
formatDependencyType(dep.DependencyType),
|
||||||
dep.ID, dep.Title, dep.Priority)
|
dep.ID, dep.Status, dep.Title, dep.Priority)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(details.Dependents) > 0 {
|
if len(details.Dependents) > 0 {
|
||||||
fmt.Printf("\nDependents (%d):\n", len(details.Dependents))
|
fmt.Printf("\nDependents (%d):\n", len(details.Dependents))
|
||||||
for _, dep := range details.Dependents {
|
for _, dep := range details.Dependents {
|
||||||
fmt.Printf(" [%s] %s: %s [P%d]\n",
|
fmt.Printf(" [%s] %s (%s): %s [P%d]\n",
|
||||||
formatDependencyType(dep.DependencyType),
|
formatDependencyType(dep.DependencyType),
|
||||||
dep.ID, dep.Title, dep.Priority)
|
dep.ID, dep.Status, dep.Title, dep.Priority)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
@@ -317,9 +317,9 @@ var showCmd = &cobra.Command{
|
|||||||
if len(depsWithMeta) > 0 {
|
if len(depsWithMeta) > 0 {
|
||||||
fmt.Printf("\nDependencies (%d):\n", len(depsWithMeta))
|
fmt.Printf("\nDependencies (%d):\n", len(depsWithMeta))
|
||||||
for _, dep := range depsWithMeta {
|
for _, dep := range depsWithMeta {
|
||||||
fmt.Printf(" [%s] %s: %s [P%d]\n",
|
fmt.Printf(" [%s] %s (%s): %s [P%d]\n",
|
||||||
formatDependencyType(dep.DependencyType),
|
formatDependencyType(dep.DependencyType),
|
||||||
dep.ID, dep.Title, dep.Priority)
|
dep.ID, dep.Status, dep.Title, dep.Priority)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -340,9 +340,9 @@ var showCmd = &cobra.Command{
|
|||||||
if len(dependentsWithMeta) > 0 {
|
if len(dependentsWithMeta) > 0 {
|
||||||
fmt.Printf("\nDependents (%d):\n", len(dependentsWithMeta))
|
fmt.Printf("\nDependents (%d):\n", len(dependentsWithMeta))
|
||||||
for _, dep := range dependentsWithMeta {
|
for _, dep := range dependentsWithMeta {
|
||||||
fmt.Printf(" [%s] %s: %s [P%d]\n",
|
fmt.Printf(" [%s] %s (%s): %s [P%d]\n",
|
||||||
formatDependencyType(dep.DependencyType),
|
formatDependencyType(dep.DependencyType),
|
||||||
dep.ID, dep.Title, dep.Priority)
|
dep.ID, dep.Status, dep.Title, dep.Priority)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Show comments
|
// Show comments
|
||||||
|
|||||||
Reference in New Issue
Block a user