【文件属性】:
文件名称:as-tree:将路径列表打印为路径树:deciduous_tree:
文件大小:152KB
文件格式:ZIP
更新时间:2021-05-19 19:25:40
cli Rust
树状
将路径列表打印为路径树。
例如,给定:
dir1/foo.txt
dir1/bar.txt
dir2/qux.txt
它将打印:
.
├── dir1
│ ├── foo.txt
│ └── bar.txt
└── dir2
└── qux.txt
当与find或fd一起使用以生成此类文件列表时,此工具特别有用。 它在本质上与tree相似,但是在控制要列出的文件时, find和fd往往更强大。
受此启发。
安装
在“发行版”选项卡中有预构建的二进制发行版。
这个项目是用Rust编写的,并且在Bazel和Cargo下都可以构建。
要使用Cargo从源代码安装:
cargo install -f --git https://github.com/jez/as-tree
要使用Bazel从源代码安装:
git clone https://github
【文件预览】:
as-tree-master
----Cargo.toml(775B)
----.github()
--------workflows()
----Cargo.lock(2KB)
----bazel(3KB)
----src()
--------main.rs(6KB)
--------options.rs(3KB)
--------BUILD(355B)
----.travis.yml(1KB)
----tools()
--------bazel(8B)
--------scripts()
----test()
--------run_one_cli.sh(254B)
--------generate_tests.bzl(3KB)
--------run_one_fixture.sh(296B)
--------cli()
--------fixture()
--------BUILD(345B)
----LICENSE.md(2KB)
----WORKSPACE(2KB)
----README.md(3KB)
----Makefile(451B)
----.bazelrc(372B)
----.gitignore(32B)
----third_party()
--------cargo()
--------BUILD(0B)