| Crates.io | project-structure |
| lib.rs | project-structure |
| version | 0.1.1 |
| created_at | 2026-01-09 13:49:03.393048+00 |
| updated_at | 2026-01-15 13:31:27.330693+00 |
| description | Generate an ASCII Representation of a project youre working on. |
| homepage | |
| repository | https://github.com/HardBoss07/project-structure |
| max_upload_size | |
| id | 2032117 |
| size | 23,277 |
A Rust-based command-line tool to generate an ASCII tree of a project directory.
Supports filtering, sorting, .gitignore rules, and output to Markdown files.
project-structure.exe [OPTIONS] [PATH]
[PATH]: Root path of the project.
Defaults to the current directory (.) if not specified.| Option | Description | Default / Base Value | Notes |
|---|---|---|---|
--include-hidden |
Include hidden files and directories | false |
By default, hidden files are skipped |
--no-git |
Do not use .gitignore rules |
false |
By default, .gitignore is respected |
--exclude <EXCLUDE> |
Space-separated exclude patterns (gitignore-style) | None |
Patterns like target *.log |
--depth <DEPTH> |
Filter depth (number of nested levels) | None |
Unlimited depth by default |
--sort <SORT> |
Sort results | name |
Possible values: name, type (type sorts directories first) |
--filter <FILTER> |
Filter for files or directories | all |
Possible values: all, files, dirs |
-o, --output[=<OUTPUT>] |
Write output to a file instead of terminal | None |
If flag is provided without a value, defaults to Project Structure.md |
-h, --help |
Show help message | - | - |
Print the full project tree in the terminal:
project-structure.exe
Include hidden files:
project-structure.exe --include-hidden
Ignore .gitignore rules:
project-structure.exe --no-git
Exclude specific files and directories:
project-structure.exe --exclude "target *.log"
Limit depth to 2 levels:
project-structure.exe --depth 2
Sort directories first:
project-structure.exe --sort type
Show only directories:
project-structure.exe --filter dirs
Write tree to Markdown (default path):
project-structure.exe -o
# Output: Project Structure.md
Write tree to a custom Markdown file:
project-structure.exe -o=MyProjectTree.md
Write tree to a nested path:
project-structure.exe -o=./docs/ProjectTree.md
.gitignore by default unless --no-git is passed..*) are ignored by default unless --include-hidden is passed.# Project Structure header.This project is licensed under the MIT License.