Skip to main content

Module tree

Module tree 

Source
Expand description

Pure helpers behind ct-tree’s reporting: per-file line/word/character counts, the metric-bound predicate, and the immediate-parent grouping used by the per-folder predicate and the directory summary.

Functions§

metrics
Count lines, words, and characters of content.
parent_dir
The immediate parent directory of a relative path ("." for a root-level file). Used to group files for the per-folder predicate and --summary dir.
within
Whether a value satisfies an optional >= min / <= max pair (an absent bound never constrains).