A lightweight directory tree printing utility.
Why another tree utility??
- Availability: If the official tree utility is not installed or hard to get, you can quickly compile this with Go.
- Cross-Platform: Easily compile on Linux, Mac, or Windows.
- Simplicity: Covers 99% of typical use cases with a minimal feature set.
- Learning Opportunity: A great way to practice coding in Go.
To compile, clone this repository and run:
./build_go
$ tree -?
tree v1.0.1
Directory tree printer - https://github.com/queone/tree
Usage:
tree [options] [directory]
Options can be specified in any order. The last specified directory will be used if
multiple directories are provided.
Options:
-f Show full file paths. Can be placed before or after the dir path.
-?, --help, -h Show this help message and exit
Examples:
tree
tree -f /path/to/directory
tree /path/to/directory -f
tree -h