Tree Decorator

An utility rust lib to render pleasing tree structures at terminal programs.

Latest Version

It's goal is to simplify tree structure display while ensuring a good looking to it. So it just handle strings, returning the expected result (with current level and supplied styles) and nothing more.

Already comes with a standard visual implementation, so is ready to use, but a custom implementation is very easy to set.

Dependencies

As little as possible.

Usage

Please, check Documentation to see a detailed explanation.

Examples

Simple

```rust use treedecorator::treeitem;

treeitem!(block, "Items"); treeitem!("A"); treeitem!(block, "B"); treeitem!(last, "B.1"); treeitem!("C"); treeitem!(last, "D"); ```

Items ├ A ├ B │ └ B.1 ├ C └ D

More Complex

```rust use treedecorator::treeitem;

treeitem!(block, "Items"); treeitem!("A"); treeitem!(block, "B"); treeitem!(block, "B.1"); treeitem!(last, "B.1.a"); treeitem!(block, "B.2"); treeitem!("B.2.a"); treeitem!(last, "B.2.b"); treeitem!(last, "B.3"); treeitem!("C"); treeitem!(last; block, "D"); treeitem!("D.1"); treeitem!("D.2"); treeitem!(last, "D.3"); closetreeitem!(); ```

rust Items ├ A ├ B │ ├ B.1 │ │ └ B.1.a │ ├ B.2 │ │ ├ B.2.a │ │ └ B.2.b │ └ B.3 ├ C └ D ├ D.1 ├ D.2 └ D.3

License

Everything is licensed under MIT License.