mirror of
https://github.com/bootandy/dust.git
synced 2026-06-08 11:29:05 +03:00
2f7c197cd7
- If `--depth` flag is not defined (or it has an invalid value), a value from the config file will be used. - If no `depth` entry in the config file (or there is no config file), the default `usize::MAX` will be used. Added test cases: - no config and no flag defined -> `usize::MAX` should be used - config defined, but flag is not defined -> config value should be used - config is not defined, but flag is defined -> flag value should be used - both config and flag is defined -> flag value should be used Additional changes: - Fixed some clippy issues. - Added comments to the example `config.toml` file. (copy from flag description) Closes: #314 Signed-off-by: Balazs Nadasdi <efertone@pm.me>
32 lines
601 B
TOML
32 lines
601 B
TOML
# Sample Config file, works with toml and yaml
|
|
# Place in either:
|
|
# ~/.config/dust/config.toml
|
|
# ~/.dust.toml
|
|
|
|
# Print tree upside down (biggest highest)
|
|
reverse=true
|
|
|
|
# Subdirectories will not have their path shortened
|
|
display-full-paths=true
|
|
|
|
# Use file length instead of blocks
|
|
display-apparent-size=true
|
|
|
|
# No colors will be printed
|
|
no-colors=true
|
|
|
|
# No percent bars or percentages will be displayed
|
|
no-bars=true
|
|
|
|
# No total row will be displayed
|
|
skip-total=true
|
|
|
|
# Do not display hidden files
|
|
ignore-hidden=true
|
|
|
|
# print sizes in powers of 1000 (e.g., 1.1G)
|
|
iso=true
|
|
|
|
# Depth to show
|
|
depth=1
|