Treels, a CLI tool built in Go, merges the tree and ls commands while introducing intuitive merging and beautification features, simplifying directory navigation and enhancing the command-line experience.
To install the treels
command-line tool, ensure you have Go installed on your system. If not, you can download and install it from the official Go website.
Once you have Go installed, open a terminal or command prompt and run the following command:
go install github.com/oussamaM1/treels/
This command will download the repository, build the treels
executable, and place it in your Go binary directory. Make sure your Go binary directory is in your system's PATH so that you can execute treels
from any directory.
To ensure that icons are displayed correctly in the terminal, it's recommended to use Nerd fonts. For example, you can download the FiraCode Nerd Font from here.
treels [Flags] [Path]
-a, --all
: List all files and directories-h, --help
: Help for treels-t, --tree
: Tree view of the directory-i, --icon
: Disable icons (Enabled by default)
treels -a
This command will list all files and directories in the current
directory.
treels -t /Project/treels
This command will display the tree view of the /Project/treels/
directory.
treels -it /Project/treels
This command will display the tree view without icons of the /Project/treels/
directory.