Allow for filtering drafts by directory

Allow for passing an argument to `drafts` which will be passed to
`grep`.

If no argument is passed, `source` will be used as the default value.
This commit is contained in:
Oliver Davies 2025-08-22 12:25:04 +01:00
parent 568ff7bc65
commit 06689e3fae

View file

@ -6,6 +6,6 @@ pkgs.writeShellApplication {
runtimeInputs = with pkgs; [ gnugrep ];
text = ''
grep -r 'draft: true' source
grep -r 'draft: true' "''${1:-source}"
'';
}