Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Djanghao/tree-pro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tree-pro

tree-pro is a lightweight alternative to tree, providing clean directory trees with folded duplicates and file limits.

Install

Option A — via go install (recommended):

go install github.com/Djanghao/[email protected]
# or use the latest tag
go install github.com/Djanghao/tree-pro@latest

Make sure $(go env GOPATH)/bin is on your PATH (or set GOBIN):

echo 'export PATH="$(go env GOPATH)/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Option B — build from source after cloning:

git clone https://github.com/Djanghao/tree-pro
cd tree-pro
# install to your Go bin (no sudo required)
go install .
# or build a local binary
go build -o tree-pro .

Usage

tree-pro [path] [flags]
  • -f, --files limit files per directory (default 5)
  • -d, --dirs expand identical directories (default 1)
  • -L, --level max depth (0 = unlimited)

Example:

tree-pro -f 2 -d 1 /path/to/your/project

Sample

image

Author

@Djanghao

About

tree-pro is a modern tree alternative that keeps output concise.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages