Generate a clean, markdown-friendly folder tree of your current directory and copy it to your clipboard.
Fast. Deterministic. Cross-platform.
go install github.com/callmegautam/treegen@latestMake sure your $GOBIN or $GOPATH/bin is in your PATH.
Generate tree for the current directory:
treegenLimit depth:
treegen --depth 2Ignore additional folders or files:
treegen --ignore build,dist| Flag | Description |
|---|---|
--depth |
Limit recursion depth (0 = unlimited) |
--ignore |
Comma-separated folders/files to ignore |
The following are ignored automatically:
.gitnode_modules.DS_Store.idea.vscode
.
├── cmd
│ └── root.go
├── internal
│ ├── clipboard
│ │ └── clipboard.go
│ └── tree
│ ├── generator.go
│ └── ignore.go
├── go.mod
└── main.go
The generated output is automatically copied to your clipboard.