diff --git a/src/diagram/tree.rs b/src/diagram/tree.rs index d30e2b5..7a029eb 100644 --- a/src/diagram/tree.rs +++ b/src/diagram/tree.rs @@ -5,6 +5,9 @@ use crate::crawler::Node; use crate::util::*; use std::{ops::Deref, sync::Arc}; +pub const MIDDLE_CHAR: &'static str = "├──"; +pub const END_CHAR: &'static str = "└──"; + pub fn create_tree_diagram(tree: &Arc, args: &CommandArgs) -> String { let mut result = String::new(); crawl_tree(tree, args, &mut result); diff --git a/src/util/mod.rs b/src/util/mod.rs index 666064f..a54e12f 100644 --- a/src/util/mod.rs +++ b/src/util/mod.rs @@ -1,5 +1,4 @@ -pub const MIDDLE_CHAR: &'static str = "├──"; -pub const END_CHAR: &'static str = "└──"; + pub fn thousends_seperator(i: u64) -> String { let mut s = String::new();