Crates.io | pathy |
lib.rs | pathy |
version | 1.0.1 |
source | src |
created_at | 2024-06-22 21:32:18.91441 |
updated_at | 2024-06-22 21:34:47.150372 |
description | A CLI tool to display the file tree of a directory |
homepage | |
repository | https://github.com/fearandesire/pathy |
max_upload_size | |
id | 1280721 |
size | 15,102 |
Minimal Rust CLI tool to display directory structures
.git
and node_modules
) for a cleaner tree visualization.-i
option to seamlessly omit any specific directories & files from the display.cargo install pathy
git clone https://github.com/fearandesire/pathy.git
cd pathy
cargo build --release
cargo install .
Basic usage: pathy <directory>
<directory>
: Directory to display. Defaults to the current directory.-i
, or --ignore
: Specify directories or files to ignore`-h
, or --help
: Display this help message-v
, or --version
: Display the current versionYou can review the default ignored directories here
pathy .
# Ignoring a directory
pathy -i docs
# Ignoring multiple directories
pathy -i docs node_modules .
# Ignore a directory and a any file
pathy -i docs README.md
Notice: Ignoring a directory / a file will explicitly exclude any exact match. E.g, ignoring
-i README.md
will ignoreREADME.md
from the file tree visualization entirely, no matter how far down it is.
Contributions are welcome! Please feel free to submit pull requests or open issues to improve the functionality or documentation of pathy.
This project is licensed under the MIT License - see the LICENSE file for details.