print-flat-tree

Crates.ioprint-flat-tree
lib.rsprint-flat-tree
version1.1.3
sourcesrc
created_at2018-02-23 15:39:11.751507
updated_at2018-07-25 13:32:04.789127
descriptionConvert a flat-tree to a string.
homepage
repositoryhttps://github.com/datrs/print-flat-tree
max_upload_size
id52533
size29,694
Maintainers (github:datrs:maintainers)

documentation

https://docs.rs/print-flat-tree

README

print-flat-tree

crates.io version build status downloads docs.rs docs

Converts a flat-tree to a string. Adapted from mafintosh/print-flat-tree.

Installation

$ cargo add print-flat-tree

Usage

print-flat-tree
Converts a flat-tree to a string

USAGE:
    print-flat-tree [tree]...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

ARGS:
    <tree>...    For example '0 1 2 3 7 8 9 10'

Output

print-flat-tree 0 1 2 3 7 8 9 10 11 12 13 14

  0──┐
     1──┐
  2──┘  │
        3──┐
           │
           │
           │
           7
  8──┐     │
     9──┐  │
 10──┘  │  │
       11──┘
 12──┐  │
    13──┘
 14──┘

Links

License

MIT OR Apache-2.0

Commit count: 41

cargo fmt