| Crates.io | dic-structure-creater |
| lib.rs | dic-structure-creater |
| version | 0.1.0 |
| created_at | 2025-04-21 11:19:27.384381+00 |
| updated_at | 2025-04-21 11:19:27.384381+00 |
| description | A CLI tool that reads tree-structured text files and generates folders and files accordingly. |
| homepage | https://github.com/natsuki221/DicStructureCreater |
| repository | https://github.com/natsuki221/DicStructureCreater |
| max_upload_size | |
| id | 1642572 |
| size | 15,791 |
DicStructureCreater is a lightweight, cross-platform CLI tool that parses directory structures from .txt or .md files and generates corresponding folders and files under a specified root directory. By default, it avoids overwriting existing files, and supports dry-run (--dry-run) and force overwrite (--overwrite) modes.
tree ASCII diagrams or Markdown-style lists.--overwrite (-O) to force replace files.--dry-run (-d) to preview actions without changing your file system.cargo install dic-structure-creater
dsc (or dsc.exe) in your system's PATH.Given a structure file structure.txt:
src/
├── lib/
│ └── utils.rs
└── main.rs
dsc structure.txt --dry-run
dsc structure.txt
dsc structure.txt --overwrite
| Option | Description |
|---|---|
STRUCTURE_FILE |
Path to the input structure file (required) |
-r, --root <path> |
Root directory to create files/folders (default: .) |
-O, --overwrite |
Overwrite existing files |
-d, --dry-run |
Show actions without making changes |
-h, --help |
Display help message |
DSC supports two main formats:
src/
├── models/
│ └── user.rs
└── main.rs
- src
- models
- user.rs
- main.rs
Note: Lines ending with
/are treated as folders; otherwise, they are considered files.
Contributions are welcome! You can submit Issues, Pull Requests, suggestions, or bug reports.
Steps:
git checkout -b feature/your-feature)This project is licensed under the MIT License. See LICENSE for details.
For questions, feel free to open an issue or discussion. Happy hacking! 🚀