Skip to content

callmegautam/treegen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

treegen

Generate a clean, markdown-friendly folder tree of your current directory and copy it to your clipboard.

Fast. Deterministic. Cross-platform.


Installation

Using Go

go install github.com/callmegautam/treegen@latest

Make sure your $GOBIN or $GOPATH/bin is in your PATH.


Usage

Generate tree for the current directory:

treegen

Limit depth:

treegen --depth 2

Ignore additional folders or files:

treegen --ignore build,dist

Flags

Flag Description
--depth Limit recursion depth (0 = unlimited)
--ignore Comma-separated folders/files to ignore

Default Ignored

The following are ignored automatically:

  • .git
  • node_modules
  • .DS_Store
  • .idea
  • .vscode

Example Output

.
├── 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.

About

tree folder structure generator cli in GoLang

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages