feat: New --collapse flag

--collapse will keep that directory collapsed and will not expand it.
This commit is contained in:
andy.boot
2025-01-26 14:32:13 +00:00
parent 6cbd736e11
commit 01c0aaeade
11 changed files with 55 additions and 5 deletions

View File

@@ -254,3 +254,10 @@ pub fn test_force_color() {
assert!(output.contains("\x1B[31m"));
assert!(output.contains("\x1B[0m"));
}
#[test]
pub fn test_collapse() {
let output = build_command(vec!["--collapse", "many", "tests/test_dir/"]);
assert!(output.contains("many"));
assert!(!output.contains("hello_file"));
}