add purge command

This commit is contained in:
atagen 2026-05-24 18:15:32 +10:00
parent 4a7febee6c
commit 2682ed958b
6 changed files with 97 additions and 4 deletions

View file

@ -241,7 +241,7 @@ in
dirPaths = lib.concatStringsSep ":" ([ systemDir ] ++ cfg.extraDirs);
wrapped = pkgs.writeShellScriptBin "inshellah" ''
case "''${1:-}" in
complete|query|dump)
complete|query|dump|purge)
exec ${cfg.package}/bin/inshellah "$@" --dir "''${XDG_CACHE_HOME:-$HOME/.cache}/inshellah:${dirPaths}"
;;
*)