Slightly less confusing output when mikado cards share a prereq
This commit is contained in:
parent
2d54f93c68
commit
940219338a
1 changed files with 9 additions and 1 deletions
|
|
@ -491,7 +491,15 @@ def walk_chain(
|
||||||
visited = set()
|
visited = set()
|
||||||
|
|
||||||
if stem in visited:
|
if stem in visited:
|
||||||
console.print(f"{' ' * depth}[dim](circular: {stem})[/dim]")
|
card = cards.get(stem)
|
||||||
|
if card:
|
||||||
|
status = "[active]" if is_active(card) else "[complete]"
|
||||||
|
console.print(
|
||||||
|
f"{' ' * depth}[dim]↑ {stem} — {card['title']} {status}"
|
||||||
|
f" (shared dep, shown above)[/dim]"
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
console.print(f"{' ' * depth}[red](missing: {stem})[/red]")
|
||||||
return
|
return
|
||||||
visited.add(stem)
|
visited.add(stem)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue