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:
parent
568ff7bc65
commit
06689e3fae
1 changed files with 1 additions and 1 deletions
|
@ -6,6 +6,6 @@ pkgs.writeShellApplication {
|
||||||
runtimeInputs = with pkgs; [ gnugrep ];
|
runtimeInputs = with pkgs; [ gnugrep ];
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
grep -r 'draft: true' source
|
grep -r 'draft: true' "''${1:-source}"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue