Skip to content
/ rtree Public

A simplified version of the tree tool written in rust

License

Notifications You must be signed in to change notification settings

xjimlinx/rtree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtree

一个用Rust编写的tree工具的简易版本

使用方法:

Usage: rtree [OPTION] [DIRECTORY]
       rtree [DIRECTORY] [OPTION]

Options:
-h, --help                     Print this help message
[DIRECTORY]                    The directory to list (default: current directory)
--depth DEPTH, -L DEPTH        Set the maximum depth of the tree (default: 0)
--all, -a                      Show hidden files and directories
-d, --directory                List directories only
--fileonly                     List files only
-V, --version                  Print the version of rtree

编译:

make build 

注意MODE=debug可作为调试,但是占用空间较大

请使用MODE=release用于安装

测试(测试用例现在还没写):

make test
# TODO:

安装(将安装到 /usr/local/bin 目录下):

make install MODE=release

About

A simplified version of the tree tool written in rust

Resources

License

Stars

Watchers

Forks

Packages

No packages published