diff options
author | Benjamin Nguyen <benjamin.van.nguyen@gmail.com> | 2023-06-26 10:18:28 -0700 |
---|---|---|
committer | Benjamin Nguyen <benjamin.van.nguyen@gmail.com> | 2023-06-26 10:18:28 -0700 |
commit | 2e7a36b12f75211de48a37f1773372dab6d3e5a5 (patch) | |
tree | c0ba86b3bc1a068a7006321563ac87b5168f6533 | |
parent | 28697fbc0c98e401f9cc587e1c9c1453066f131a (diff) |
readme update
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | src/context/layout.rs | 4 | ||||
-rw-r--r-- | src/main.rs | 2 |
3 files changed, 6 insertions, 4 deletions
@@ -227,6 +227,7 @@ Options: - regular: Outputs the tree with the root node at the bottom of the output - inverted: Outputs the tree with the root node at the top of the output - flat: Outputs a flat layout using paths rather than an ASCII tree + - iflat: Outputs an inverted flat layout with the root at the top of the output -., --hidden Show hidden files @@ -525,7 +526,7 @@ Additionally, the word and line-count of directories are the summation of all of ### Layouts -`erdtree` comes with three layouts: +`erdtree` comes with four layouts: ``` -y, --layout <LAYOUT> @@ -537,6 +538,7 @@ Additionally, the word and line-count of directories are the summation of all of - regular: Outputs the tree with the root node at the bottom of the output - inverted: Outputs the tree with the root node at the top of the output - flat: Outputs a flat layout using paths rather than an ASCII tree + - iflat: Outputs an inverted flat layout with the root at the top of the output ``` * The `inverted` layout a more traditional `tree`-like layout where the root node is at the very top of the output. diff --git a/src/context/layout.rs b/src/context/layout.rs index 92e8826..7e88bcc 100644 --- a/src/context/layout.rs +++ b/src/context/layout.rs @@ -13,6 +13,6 @@ pub enum Type { /// Outputs a flat layout using paths rather than an ASCII tree Flat, - /// Outputs an inverted flat layout with the root at the to - InvFlat, + /// Outputs an inverted flat layout with the root at the top of the output + Iflat, } diff --git a/src/main.rs b/src/main.rs index f0b6ce6..b999124 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,7 +97,7 @@ fn run() -> Result<(), Box<dyn Error>> { let render = Engine::<Flat>::new(tree, ctx); format!("{render}") } - layout::Type::InvFlat => { + layout::Type::Iflat => { let render = Engine::<FlatInverted>::new(tree, ctx); format!("{render}") } |