Documentation
¶
Overview ¶
Command dirstat: Fast, single-binary directory statistics CLI: every file under a tree grouped by format, with counts, sizes, and lines of code, as a colored terminal table or as JSON.
The binary registers a single command, scan, via strictcli and dispatches to its handler. Machine output is the framework's --json envelope, whose payload is the scan document built by internal/jsonout.
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
classify
Package classify determines a file's group name (format) and its text/binary classification, according to the selected grouping method.
|
Package classify determines a file's group name (format) and its text/binary classification, according to the selected grouping method. |
|
config
Package config provides the embedded text-classification lists and color themes.
|
Package config provides the embedded text-classification lists and color themes. |
|
jsonout
Package jsonout builds the machine-readable scan document.
|
Package jsonout builds the machine-readable scan document. |
|
render
Package render produces the colored terminal output: summary section, format tables, legend, and the extensionless-file list.
|
Package render produces the colored terminal output: summary section, format tables, legend, and the extensionless-file list. |
|
scan
Package scan walks a directory tree, classifies files via a worker pool, and aggregates per-format statistics.
|
Package scan walks a directory tree, classifies files via a worker pool, and aggregates per-format statistics. |
|
scanconfig
Package scanconfig loads and validates the optional TOML scan-config file selected with --config (spec §11, R41–R44).
|
Package scanconfig loads and validates the optional TOML scan-config file selected with --config (spec §11, R41–R44). |
|
test
Package test contains integration tests that build the real dirstat binary once and run it as a subprocess against fixture trees.
|
Package test contains integration tests that build the real dirstat binary once and run it as a subprocess against fixture trees. |
|
testutil
Package testutil provides shared helpers for building fixture trees.
|
Package testutil provides shared helpers for building fixture trees. |
Click to show internal directories.
Click to hide internal directories.