Repository navigation
Release Note: Folder Structure CLI Tool v1.1
Overview
We are pleased to announce the release of Folder Structure CLI Tool v1.1! This update introduces support for JSON format, allowing users to define folder structures using JSON files. This enhancement provides greater flexibility and ease of use for users who prefer JSON over YAML or TXT formats.
New Features
- JSON Format Support: Users can now define folder structures using JSON files. The tool will parse the JSON file and create the corresponding directory structure.
- Improved Error Handling: Enhanced error handling for structured TXT format and tree-based indentation method.
Usage
To use the Folder Structure CLI Tool with a JSON file, run the following command:
python cli.py <structure_file.json> <output_directory>
Example JSON File
Here is an example of a JSON file defining a folder structure:
[
{
"name": "project-name",
"type": "folder",
"children": [
{
"name": "src",
"type": "folder",
"children": [
{"name": "main.py", "type": "file"},
{"name": "utils.py", "type": "file"},
]
},
{
"name": "tests",
"type": "folder",
"children": [
{"name": "test_main.py", "type": "file"},
]
},
{"name": ".github/workflows", "type": "folder"},
{"name": ".gitignore", "type": "file"},
{"name": "LICENSE", "type": "file"},
{"name": "README.md", "type": "file"}
]
}
]
Contribution
I welcome contributions to improve the Folder Structure CLI Tool. Please fork the repository and submit pull requests for any enhancements or bug fixes.
Thank you for using the Folder Structure CLI Tool! I hope this new feature enhances your experience and makes your project setup process even more efficient and organized.