Refactor select with new maybe selector

This is a great refactor of the select functionality in the flake class.
This now uses the same parser as the nix code, but runs it in python for
nice stacktraces.

Also we now have a maybe selector which can be used by prepending the
selector with a ?

Tests have been expanded to make sure the code is more stable and easier
to understand
This commit is contained in:
lassulus
2025-04-19 15:20:13 -07:00
committed by Michael Hoang
parent f11ccac1b6
commit d93e58218d
9 changed files with 691 additions and 395 deletions

View File

@@ -11,7 +11,6 @@ rec {
./introspection/flake-module.nix
./inventory/flake-module.nix
./jsonschema/flake-module.nix
./select/flake-module.nix
];
flake.clanLib = import ./default.nix {
inherit lib inputs self;