Skip to content

Converts a flat-tree to a string.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

isgasho/print-flat-tree

 
 

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

About

Converts a flat-tree to a string.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust 100.0%