Expand description
dfrs is a terminal-only filesystem usage viewer.
The executable follows a small pipeline: parse the CLI, discover mounts
through the platform provider, collect statfs counters, apply the
df-like visibility policy, and render the selected columns. The crate is a
binary rather than a reusable library, so these RustDoc comments describe
CLI behavior and implementation seams for maintainers and downstream
packagers.
ModulesΒ§
- args π
- Command-line parsing and display-policy types for the
dfrsexecutable. - devices π
- Linux block-device ancestry used by device selectors and optional rows.
- errors π
- Shared error aliases used by the binaryβs discovery and reporting stages.
- filter π
- Display policy that selects mount records before filesystem measurement.
- mount π
- Filesystem mount records and platform-aware discovery.
- report π
- Rows shared by filesystem reports and optional block-device output.
- theme π
- Terminal rendering palettes, theme persistence, and glyph choices.
- theme_
picker π - Interactive terminal palette selection.
- util π
- Small, side-effect-free helpers shared by discovery and table rendering.
MacrosΒ§
StructsΒ§
- Mount
Request π - Discover, measure, filter, path-select, and sort mount records.
FunctionsΒ§
- append_
filesystem_ πtotal - Append a total computed from filesystem rows only.
- column_
width π - Calculate the widest cell needed for one table column.
- display_
mounts π - Render a complete report, including headings, bars, colors, and rows.
- get_
mounts π - main π
- Parse arguments, initialize logging, and report failures to stderr.
- run π
- Execute the parsed CLI command and return any user-facing failure.