A CLI tool to list your directory tree.
This is a simplified implementation of UNIX tree
with added features for filtering files. By default will hide all files
listed in the current workspaces .gitignore
(disabled with -g
flag) as
its often frustrating to list output directories like venv/
and target/
.
wget https://github.com/dunstall/tree/releases/download/a.b.c/tree-variant
chmod +x tree-variant
mv tree-variant /usr/local/bin/tree
git clone git@github.com:dunstall/tree.git && cd tree
cargo build --release
cp target/release/tree /usr/local/bin
git clone git@github.com:dunstall/tree.git && cd tree
cargo test
See tree --help
for the full CLI.
- Add
-f
flag to filter files shown (*.java
,SB*.h*
, ...) - Pretty print byte count (KB, MB...)
- Add glob support
- Add missing matching rules for
.gitignore
fromhttps://git-scm.com/docs/gitignore#_pattern_format
- Add support for multiple directories (
tree bin/ src/
)
See LICENSE
for more information.