lstree

Crates.iolstree
lib.rslstree
version0.1.4
sourcesrc
created_at2023-06-08 21:12:56.268676
updated_at2023-06-09 21:13:56.634059
descriptionls and tree combined.
homepagehttps://github.com/atdojo/lstree/tree/main
repositoryhttps://github.com/atdojo/lstree/tree/main
max_upload_size
id885744
size35,614
(monkeyrandomdudeidk)

documentation

README

lstree

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

Examples

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

CHANGELOG

Commit count: 0

cargo fmt