#tree #dag #cli #debugging

bidir_termtree

在命令行上可视化类似树形的数据(双向)

2 个版本

0.1.1 2023年4月29日
0.1.0 2023年4月29日

#469 in 命令行界面


用于 mds

MIT 许可证

18KB
374

双向 termtree

在命令行上可视化类似树形的数据

示例

在 "examples" 目录下提供了一个示例程序,用于模拟 Linux 程序 tree(1)

$ cargo run --example tree target
    Finished debug [unoptimized + debuginfo] target(s) in 0.0 secs
     Running `target/debug/examples/tree target`
target
└── debug
    ├── .cargo-lock
    ├── .fingerprint
    |   └── termtree-21a5bdbd42e0b6da
    |       ├── dep-example-tree
    |       ├── dep-lib-termtree
    |       ├── example-tree
    |       ├── example-tree.json
    |       ├── lib-termtree
    |       └── lib-termtree.json
    ├── build
    ├── deps
    |   └── libtermtree.rlib
    ├── examples
    |   ├── tree
    |   └── tree.dSYM
    |       └── Contents
    |           ├── Info.plist
    |           └── Resources
    |               └── DWARF
    |                   └── tree
    ├── libtermtree.rlib
    └── native
 cargo run --example tree_up target/debug/.fingerprint
    Finished dev [unoptimized + debuginfo] target(s) in 0.00s
     Running `target/debug/examples/tree_up target/debug/.fingerprint`
    ┌── example-tree
    ├── invoked.timestamp
    ├── example-tree.json
    ├── dep-example-tree
┌── bidir_termtree-2668ad9a2a26e5f3
   ┌── lib-bidir_termtree.json
   ├── invoked.timestamp
   ├── lib-bidir_termtree
   ├── dep-lib-bidir_termtree
├── bidir_termtree-ef09f09b8a0fb98c
   ┌── example-tree
   ├── invoked.timestamp
   ├── example-tree.json
   ├── dep-example-tree
├── bidir_termtree-57357bb7081cd257
   ┌── dep-example-tree_up
   ├── invoked.timestamp
   ├── example-tree_up.json
   ├── example-tree_up
├── bidir_termtree-3320445c1593b068
   ┌── test-lib-bidir_termtree.json
   ├── dep-test-lib-bidir_termtree
   ├── test-lib-bidir_termtree
   ├── invoked.timestamp
├── bidir_termtree-99ab0a9de60ddeac
   ┌── lib-bidir_termtree.json
   ├── invoked.timestamp
   ├── lib-bidir_termtree
   ├── dep-lib-bidir_termtree
├── bidir_termtree-1c8302dada71b921
   ┌── dep-example-tree_up
   ├── invoked.timestamp
   ├── example-tree_up.json
   ├── example-tree_up
├── bidir_termtree-d3fe7015bb6fbf1a
.fingerprint

许可证

许可协议为 MIT 许可证 (LICENSE-MIThttp://opensource.org/licenses/MIT)

无运行时依赖