Skip to content

Feature Request: Configurable Directory Depth for Project Generation #6

@OmarAfet

Description

@OmarAfet

The ability to control how deep the structure is generated:

  • 0 means infinite depth — the entire project is generated, no matter how deep the directory structure goes.
  • 2 means 2 levels deep — only directories and files up to 2 levels deep will be generated.

For example, with depth = 2:

Obsidium/
├── README.md             # Level 1
└── src/                  # Level 1
    ├── config/           # Level 2
    │   └── server.rs     # Level 3 (not generated)
    ├── game/             # Level 2
    │   ├── entity/       # Level 3 (not generated)
    │   │   └── mod.rs    # Level 4 (not generated)
    │   └── world/        # Level 3 (not generated)
    │       └── mod.rs    # Level 4 (not generated)
    └── main.rs           # Level 2

Only files and folders up to level 2 (relative to the project root) will be included.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions