Skip to content

Config file does not support the collapse option #536

@ofek

Description

@ofek

Hey there, thanks for this great tool! I'm trying to add it to our developer environments with certain directories collapsed by default like .git but only the flag appears to work.

❯ dust -bn 4 -d 2 --collapse .git
 29M   ┌── test
 55M   ├── .git
 41M   │ ┌── dyninst
149M   ├─┴ pkg
309M ┌─┴ .

❯ $env.DC
/root/.config/dust/config.toml

❯ echo "collapse=\".git\"\n" o> $env.DC; cat $env.DC; dust -bn 4 -d 2
collapse=".git"
 53M     ┌── objects
 55M   ┌─┴ .git
 41M   │ ┌── dyninst
149M   ├─┴ pkg
309M ┌─┴ .

❯ echo "collapse=[\".git\"]\n" o> $env.DC; cat $env.DC; dust -bn 4 -d 2
collapse=[".git"]
 53M     ┌── objects
 55M   ┌─┴ .git
 41M   │ ┌── dyninst
149M   ├─┴ pkg
309M ┌─┴ .

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions