Skip to content

Commit

Permalink
Merge pull request #7 from alirezasariri78/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
alirezasariri78 authored Apr 28, 2024
2 parents dc05840 + 0f51100 commit 38f5d61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/diagram/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Node>, args: &CommandArgs) -> String {
let mut result = String::new();
crawl_tree(tree, args, &mut result);
Expand Down
3 changes: 1 addition & 2 deletions src/util/mod.rs
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 38f5d61

Please sign in to comment.