Tree Maker CLI
A command-line tool to generate a tree structure of a folder and its contents, useful for when you need to add context to your GPT prompts.
Features
- Generates a visual representation of a directory's structure
- Supports customizable depth limiting
- Allows excluding specific files and directories
- Provides options to include or exclude hidden files
- Output can be saved to a file or copied to the clipboard
Usage
Installation
Install via pip:
pip install tree-maker-cli
Using this tool
Once installed, you can call the tool with the command
tree-maker [options] [directory]
If called without arguments, it will print the tree structure from the current folder. If called with a valid folder path, it will print the tree structure from that location.
tree-maker /path/to/folder
Arguments
The following arguments are available:
--depth: Sets the depth of the tree structure to print--clipboard(or-c): Copy the tree to the clipboard--output(or-o): Set the output file path--exclude: Files and/or folders to exclude from the tree--show-hidden: Show hidden files in the tree structure--show-excluded: Show a list of the files/folders excluded from the tree by default--add-excluded: Add files or folders to the list of files and folders excluded by default--remove-excluded: Remove files or folders from the list of files/folders excluded by default
For example, to print a tree of depth two with hidden files and excluding the folders public, tmp, and log and then copy it to the clipboard:
tree-maker --depth=2 -c --show-hidden /path/to/your/app --exclude public tmp log
To save to a text file:
tree-maker [arguments] --output path/to/output.txt
License
This project is licensed under the MIT License.
Release files for tree-maker-cli 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tree_maker_cli-1.0.3.tar.gz | 7.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tree_maker_cli-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.5 kB
Release files / tree_maker_cli-1.0.3.tar.gz
| Download URL | tree_maker_cli-1.0.3.tar.gz |
|---|---|
| Size | 7.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78d5cd82d082ba9eecafdf4a4860c9cfa6177c850bb8c9c2a4b7bdb92b6f513f
|
|
BLAKE2b-256 checksum How to use checksums |
cd89b4e5ccce841f110c31fddee1e84e068ae393542356bd6045a1aa90524995
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|
Release files / tree_maker_cli-1.0.3-py3-none-any.whl
| Download URL | tree_maker_cli-1.0.3-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ad3cd3427e95aee0f261de19ca7f869662ac2e51d9c923119f14f66f77c820f6
|
|
BLAKE2b-256 checksum How to use checksums |
ed16f80323a6bfaddb5fee4513b965c334da618a8aa55917a117bb4eb03db073
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.22
|