plugins/file/commands/tree architecture

Manages the file tree subcommand: parsing depth/target/ext/expanded/reveal arguments, resolving and validating the workspace target, building filtered text trees and lazily-expandable web directory listings with IGNORE/.gitignore filtering, and decorating rows with aggregated git status for CLI and web surfaces.

Architectural role

Read-only discovery surface within the plugins/file/commands aggregation — the browsing counterpart to mutating file/git commands. Provides the foundational navigation layer that view/edit/create/delete/rename operate inside, bridging the centralized adapter/handleFile dispatch to both CLI and lazy web execution paths. Owns its own git-status bubbling and delegates interactive expansion/navigation/file-ops UI to the renderers/ child, while reusing shared/ workspace containment and IGNORE/.gitignore filtering shared with sibling file commands.

Source map

Integration details