mirror of
https://github.com/bootandy/dust.git
synced 2025-12-31 23:16:28 -08:00
feat: New --collapse flag
--collapse will keep that directory collapsed and will not expand it.
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user