Crates.io | lstree |
lib.rs | lstree |
version | 0.1.4 |
source | src |
created_at | 2023-06-08 21:12:56.268676 |
updated_at | 2023-06-09 21:13:56.634059 |
description | ls and tree combined. |
homepage | https://github.com/atdojo/lstree/tree/main |
repository | https://github.com/atdojo/lstree/tree/main |
max_upload_size | |
id | 885744 |
size | 35,614 |
ls and tree combined.
Usage: lstree [OPTIONS] [File]...
Arguments:
[File]... The target file(s) or directories [default: ./]
Options:
-b, --block-size <Block size> [default: ]
-l, --long
-a, --all
-d, --dir-only
-r, --reverse
-p, --print-all-file
-e, --exclude <Ignore files base on regex> [default: ]
-t, --tree-spacer <Tree spacer> [default: " "]
-h, --help Print help
-V, --version Print version
Exclude file or directory
lstree -e target
Exclude more complex regex
lstree -e "(target)|(.rs)"
Make file tree grepable. Will print full paths seperated by spaces.
# Without --print-all-file or -p
lstree -e "target"
# Cargo.toml
# LICENSE
# Cargo.lock
# README.md
# src
# tree_generator.rs
# main.rs
# tree_renderer.rs
# With --print-all-file or -p
lstree -p -e "target"
# Cargo.toml
# LICENSE
# Cargo.lock
# README.md
# src
# src tree_generator.rs
# src main.rs
# src tree_renderer.rs
# So can grep stuff and know the path of the file
lstree -p -e "target" | grep main
# src main.rs