https://github.com/rust-cli/termtree
Visualize tree-like data on the command-line
https://github.com/rust-cli/termtree
Last synced: 7 months ago
JSON representation
Visualize tree-like data on the command-line
- Host: GitHub
- URL: https://github.com/rust-cli/termtree
- Owner: rust-cli
- License: mit
- Created: 2021-10-07T18:02:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-05-07T12:37:03.000Z (7 months ago)
- Last Synced: 2025-05-15T00:04:55.252Z (7 months ago)
- Language: Rust
- Homepage: https://docs.rs/termtree
- Size: 217 KB
- Stars: 86
- Watchers: 7
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# termtree [](https://github.com/rust-cli/termtree/actions/workflows/main.yml)
> Visualize tree-like data on the command-line
[API documentation](https://docs.rs/termtree)
## Example
An example program is provided under the "examples" directory to mimic the `tree(1)`
linux program
```bash
$ 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
```
## Related Crates
- [`treeline`](https://crates.io/crates/treeline): termtree was forked from this.
- [`tree_decorator`](https://crates.io/crates/tree_decorator)
- [`xtree`](https://crates.io/crates/xtree)
- [`ptree`](https://crates.io/crates/ptree)
## License
Licensed under MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)