目录
#LINK
https://www.npmjs.com/package/tree-cli
based on cmder
#安装
root@meideprac ~ $npm install -g tree-cli
root@meideprac ~ $ npm install -g tree-cli
I:\3rd-party\programs\node-v10.15.3\treee -> I:\3rd-party\programs\node-v10.15.3\node_modules\tree-cli\bin\tree
I:\3rd-party\programs\node-v10.15.3\tree -> I:\3rd-party\programs\node-v10.15.3\node_modules\tree-cli\bin\tree
+ [email protected]
added 73 packages from 57 contributors in 8.581s
root@meideprac ~ $ tree -l 3 --base root --ignore 'build,gradle,' -o out.md
root@meideprac /i/3rd-party/code $ tree -l 3 --base root --ignore 'build,gradle,' -o out.md
▁
I:\3rd-party\code\root
├── buildSrc
| ├── build-src.gradle.kts
| ├── config
| ├── settings.gradle.kts
| └── source
| ├── groovy
| ├── java
| ├── kotlin
| ├── test-groovy
| ├── test-java
| ├── test-kotlin
| └── test-resources
├── gradlew
├── gradlew.bat
├── root-build.gradle.kts
├── settings.gradle.kts
└── subprojects
├── 3rd-starters
| ├── 3rd-db-starter
| └── 3rd-web-starter
├── codegen
| ├── codegen.gradle.kts
| ├── config
| ├── README.md
| └── source
├── core
| ├── config
| ├── core.gradle.kts
| └── source
├── repository
| ├── config
| ├── repository.gradle.kts
| └── source
└── test
├── config
├── docs
├── source
└── test.gradle.kts
directory: 35 file: 13
ignored: directory (6)
Finish writing to file: I:\3rd-party\code\out.md
#参数解析
-l
目录树最大深度
--base
指定根目录
--ignore
忽略指定文件或文件夹,以,
分隔的字符串数组
-o
将内容输出至指定文件
更多移步:https://www.w3h5.com/post/568.html
标签:cli,3rd,tree,kts,gradle,root,目录 From: https://www.cnblogs.com/meideprac/p/16663642.html