2 releases
new 0.1.2 | Dec 13, 2024 |
---|---|
0.1.1 | Dec 12, 2024 |
0.1.0 |
|
#359 in Command line utilities
367 downloads per month
6KB
84 lines
TREELS
Treels is a recursive version of the famous ls
command.
tree + ls = treels
Command
Display your files in a recursive manner
Usage: treels [OPTIONS]
Options:
-d, --depth <DEPTH> Depth of the tree [default: 2]
-p, --path <PATH> Path to grow your tree [default: .]
-i, --include-dots Include dotfiles in the display
-h, --help Print help
-V, --version Print version
Examples
Get all files in the current folder (without dotfiles) and with a depth of 1:
treels -d 1
Get all files in the parent folder (with dotfiles) with the default depth of 2:
treels -i -p ../
Installation
You can install treels
in a few different ways:
Using Cargo (Recommended)
If you have Rust installed, you can easily install treels
via Cargo:
cargo install treels
Building from source
If you prefer, you can clone this repository and build treels manually:
git clone https://github.com/your-repo/treels.git
cd treels
cargo build --release
cp target/release/treels /usr/local/bin/treels
License
This project is licensed under the MIT License.
Dependencies
~1.1–1.7MB
~32K SLoC