A simple command-line tool to visualize directory structures.
DirView is a cross-platform CLI tool for displaying the hierarchical structure of directories. It supports excluding specified folders and optionally displaying hidden files and directories.
- Go language version 1.20 or higher
-
Open a terminal and clone the repository:
git clone https://github.com/sysfat/dir-view.git
-
Navigate to the cloned directory:
cd dir-view
-
Build the executable:
go build -o dirview.exe
-
Run
dirview.exe
commands as described below.
-
Open a terminal and clone the repository:
git clone https://github.com/sysfat/dir-view.git
-
Navigate to the cloned directory:
cd dir-view
-
Build the executable:
go build -o dirview
-
Run
dirview
commands as described below.
-
Open a terminal.
-
Run DirView commands as follows:
-
Display the directory structure for the current folder:
dirview
-
Display the structure for a specific folder:
dirview /path/to/folder
-
Exclude specific directories:
dirview -exclude=node_modules,vendor
-
Show hidden files and directories:
dirview -show-hidden
-
For any issues, ensure the correct syntax is used for commands and flags (-exclude
, -show-hidden
).
For more information, run:
dirview -help
This project is licensed under the MIT License.
- Inspired by the Unix
tree
command.