prettytable-rs icon indicating copy to clipboard operation
prettytable-rs copied to clipboard

Add tree module to be able tree lignes in row

Open davidB opened this issue 6 years ago • 1 comments

Hi,

This PR allow to generate tree-line for each row, then user can display it into any cell and produce some kind of tree table like:

  | Title 1     | Title 2    |
  +-------------+------------+
  | 1           | A          |
  | ├─ 2        | B          |
  | │  └─ 3     | C          |
  | └─ 5        | Z          |
  | 6           | Z          |
  | 7           | Z          |
  | ├─ 8        | Z          |
  | └─ 9        | Z          |
  +-------------+------------+

I'm open to any change that should be done to better match the current state of the project (naming, examples, doc).

davidB avatar Oct 19 '19 17:10 davidB

Codecov Report

Merging #121 into master will increase coverage by 0.63%. The diff coverage is 98.57%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #121      +/-   ##
=========================================
+ Coverage   85.86%   86.5%   +0.63%     
=========================================
  Files           5       6       +1     
  Lines        1323    1393      +70     
=========================================
+ Hits         1136    1205      +69     
- Misses        187     188       +1
Impacted Files Coverage Δ
src/lib.rs 87.54% <ø> (ø) :arrow_up:
src/tree.rs 98.57% <98.57%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update cf7dca3...083063e. Read the comment docs.

codecov[bot] avatar Oct 19 '19 17:10 codecov[bot]