anntnzrb 4df1f04931 refactor: unify filesystem operations with pipe and higher-order functions
Introduce get-entries-by-kind to eliminate duplication between get-directories
and get-files. Add filter-files helpers to reduce 6 similar filtering functions
into 2 reusable higher-order functions.

Changes:
- Added pipe to imports
- Added get-entries-by-kind using pipe for clearer data flow
- Refactored get-directories and get-files to use get-entries-by-kind
- Added filter-files and filter-files-recursive helpers
- Refactored all 6 file filtering functions to one-liners using helpers

Impact:
- Lines: +30 -49 (net: -19)
- Eliminated duplication in filesystem operations
- Introduced modern pipe pattern for data transformations
- Better composability with higher-order functions

Testing: nix flake check ✓
2025-10-08 23:59:51 -05:00
2025-10-08 21:56:09 -05:00
2022-09-07 17:06:33 -07:00
2023-02-13 00:12:43 -08:00
2024-05-07 17:33:24 +01:00

Snowfall Lib

Nix Flakes Ready Linux Ready macOS Ready Generators Ready

 

Unified configuration for systems, packages, modules, shells, templates, and more with Nix Flakes.

Snowfall Lib is built on top of flake-utils-plus.

Get Started

See the Snowfall Lib Quickstart guide to start using Snowfall Lib.

Reference

Looking for Snowfall Lib documentation? See the Snowfall Lib Reference.

Description
No description provided
Readme Apache-2.0 334 KiB
Languages
Nix 100%