How tesserato/codeweaver works
CodeWeaver is a CLI that scans a chosen directory, filters paths, and produces a Markdown document containing a file tree and file contents. Its documented options also support included/excluded path logs, a prepended instruction, and clipboard copying. The sampled source is partial, so some internal calls and output wiring are not visible; those relationships are omitted or marked unverified.
Main entry points: main.go Markdown orchestration
Components 12
CLI and Configuration
- Flag parsing
main.go - Regex compilation
main.go
Document Generation
- Markdown orchestration
main.go - Content scanning
main.go - Path filtering
main.go - File contents
main.go - File tree
main.go - Markdown document
main.go
Output Options
- Output file
main.go - Path log files
main.go - Clipboard
Other components
- CLI user
Connections 13
- CLI user → Flag parsing: sets options
README.md - Flag parsing → Regex compilation: provides patterns
main.go - Flag parsing → Markdown orchestration: configures
main.go - Regex compilation → Markdown orchestration: provides matchers
main.go - Markdown orchestration → Content scanning: builds content
main.go - Content scanning → Path filtering: filters paths
README.md - Content scanning → File contents: embeds contents
README.md - Markdown orchestration → File tree: builds tree
main.go - Content scanning → File tree: supplies paths
main.go - Markdown orchestration → Markdown document: assembles
main.go - Markdown document → Output file: writes
main.go - Markdown orchestration → Path log files: records paths
main.go - Markdown document → Clipboard: copies optionally