feat: Reverse direction of bars

Add bars on right option

Add tests
This commit is contained in:
andy.boot
2023-11-09 21:52:13 +00:00
parent 24bdbf036e
commit 6e0505bfd7
11 changed files with 96 additions and 8 deletions
+4
View File
@@ -25,6 +25,7 @@ pub struct Config {
pub only_file: Option<bool>,
pub disable_progress: Option<bool>,
pub depth: Option<usize>,
pub bars_on_right: Option<bool>,
}
impl Config {
@@ -93,6 +94,9 @@ impl Config {
pub fn get_only_file(&self, options: &ArgMatches) -> bool {
Some(true) == self.only_file || options.is_present("only_file")
}
pub fn get_bars_on_right(&self, options: &ArgMatches) -> bool {
Some(true) == self.bars_on_right || options.is_present("bars_on_right")
}
}
fn convert_min_size(input: &str, iso: bool) -> Option<usize> {