Skip to content

Visualize tree-like data on the command-line

License

Notifications You must be signed in to change notification settings

rust-cli/termtree

Folders and files

NameName
Last commit message
Last commit date
Apr 3, 2025
Sep 27, 2024
Mar 3, 2025
Apr 26, 2024
Mar 29, 2023
Oct 26, 2023
Jul 25, 2024
Mar 3, 2025
Jan 1, 2025
Mar 3, 2025
Mar 29, 2023
Oct 7, 2021
Dec 1, 2022
Dec 16, 2024
Aug 13, 2023

Repository files navigation

termtree Main

Visualize tree-like data on the command-line

API documentation

Example

An example program is provided under the "examples" directory to mimic the tree(1) linux program

$ 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

License

Licensed under MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)