renderFileTree prints a tree of skill files using box-drawing characters.
(w io.Writer, cs *iostreams.ColorScheme, files []discovery.SkillFile)
| 492 | |
| 493 | // renderFileTree prints a tree of skill files using box-drawing characters. |
| 494 | func renderFileTree(w io.Writer, cs *iostreams.ColorScheme, files []discovery.SkillFile) { |
| 495 | root := buildTree(files) |
| 496 | printTree(w, cs, root.children, "") |
| 497 | } |
| 498 | |
| 499 | // buildTree constructs a tree structure from flat file paths. |
| 500 | func buildTree(files []discovery.SkillFile) *treeNode { |
no test coverage detected