Add pushState helper

This commit is contained in:
Alex David 2025-09-28 15:58:58 -07:00
commit 22ec74b9d1
2 changed files with 17 additions and 25 deletions

View file

@ -11,4 +11,8 @@ pkgs: rec {
rawOrStr._noescape
else
pkgs.lib.strings.escapeShellArg rawOrStr;
pushState =
key: toPush: state:
state // { ${key} = state.${key} ++ [ toPush ]; };
}