https://github.com/nmdra/treebuilder
Simple Go CLI tool for instantly scaffolding directory structures and empty files from standard tree-formatted text.
https://github.com/nmdra/treebuilder
cli cobra go goreleaser
Last synced: about 1 month ago
JSON representation
Simple Go CLI tool for instantly scaffolding directory structures and empty files from standard tree-formatted text.
- Host: GitHub
- URL: https://github.com/nmdra/treebuilder
- Owner: nmdra
- License: gpl-3.0
- Created: 2026-03-04T15:15:13.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-03-04T15:59:54.000Z (4 months ago)
- Last Synced: 2026-03-04T22:51:51.331Z (4 months ago)
- Topics: cli, cobra, go, goreleaser
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.

> [!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](https://github.com/nmdra/treebuilder/releases).
*Or build from source:*
```bash
make build
```
## Usage
Create a text file (e.g., `structure.txt`) defining your layout. **Note:** Directories must end with a trailing slash (`/`).
**structure.txt:**
```text
my-project/
├── cmd/
│ └── main.go
└── pkg/
└── utils.go
```
**Run the CLI:**
```bash
treebuilder structure.txt
```
**Preview without creating files (Dry Run):**
```bash
treebuilder --dry-run structure.txt
```
---
Built with ❤️ by Nimendra — [blog.nimendra.xyz](https://blog.nimendra.xyz)