Skip to content

nmdra/Treebuilder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TreeBuilder

A fast CLI tool written in Go that reads a tree-formatted text file and instantly scaffolds the corresponding directory structure and empty files on your disk.

Treebuilder png

Note

Hi, Nimendra here!
I built this tool out of personal frustration. Most of the time, AI tools like Gemini and ChatGPT give you a folder structure in a tree format. It's a massive headache to create those folders and files one by one. I built this tool so you can just take that text output and instantly convert it into the actual folders and files on your disk!

Installation

Download the latest binary for your OS (macOS, Linux, Windows) from the Releases page.

Or build from source:

make build

Usage

Create a text file (e.g., structure.txt) defining your layout. Note: Directories must end with a trailing slash (/).

structure.txt:

my-project/
├── cmd/
│   └── main.go
└── pkg/
    └── utils.go

Run the CLI:

treebuilder structure.txt

Preview without creating files (Dry Run):

treebuilder --dry-run structure.txt

Built with ❤️ by Nimendra — blog.nimendra.xyz

About

Simple Go CLI tool for instantly scaffolding directory structures and empty files from standard tree-formatted text.

Topics

Resources

License

Stars

Watchers

Forks

Contributors