Commit Graph

19 Commits

Author SHA1 Message Date
Kai Norman Clasen
f3972b8261 Add flake usage to README 2023-04-10 18:19:16 +02:00
Farid Zakaria
3e1fff9ec0
Fix typo in README.md (#26)
path -> root for the attribute name of the functor.
2022-08-01 13:08:38 +02:00
Michael Pontus
b0b96a3fc6
Fix typo (#21) 2022-03-26 13:23:55 +01:00
zimbatm
26dd9843a9
README: improve wording a bit 2022-01-17 11:45:01 +01:00
Doron Behar
bd03eb5242
README: Recommend using include and not only exclude (#12) 2022-01-05 19:32:37 +01:00
David Arnold
2fb0d9f0be
doc: clarify XOR for include & exclude (#15)
While the wording already implied it, this clarification makes it
clear in the context of the `or_` combinator.
2022-01-05 19:27:58 +01:00
zimbatm
3c9e33ed62
rename or to or_
"or" is a keyword in Nix.

Fixes #8
2021-05-05 10:22:00 +02:00
zimbatm
e720715870
README: improve content 2021-05-05 10:15:45 +02:00
Jonas Chevalier
08602032e4
allow to combine matchers (#4) 2021-04-29 23:12:16 +00:00
zimbatm
a1a479f190
automatically match parent folders
If "src/foo" is used, automatically match the "src" folder.

Fixes #3
2021-04-29 21:55:25 +02:00
Robert Whitaker
21e58193e0
Make paths also match subdirectories (#2)
* Make paths also match subdirectories

This makes matchers that are generated for strings and paths treat the
path as a prefix instead of as the entire path, allowing a path to also
match its subdirectories and contained files.

This allows patterns like `"src"` to also match by default:
- `src/folder_x`
- `src/folder_x/folder_y`
- etc.

* Turn _isPathPrefix into new matcher and restore previous default path behavior

* Update inDirectory to compare string prefixes instead of path segments

This avoids the extra work of splitting the paths into segments and
comparing them piece by piece.

* proposed change

Co-authored-by: zimbatm <zimbatm@zimbatm.com>
2021-04-29 21:48:37 +02:00
Ollie Charles
7aa08b3451
Update README.md (#1)
Co-authored-by: Jonas Chevalier <zimbatm@zimbatm.com>
2021-04-27 10:07:32 +02:00
zimbatm
f5342b3099
add logo :) 2021-04-27 10:06:18 +02:00
Jonas Chevalier
5f7f892143
Update README.md 2021-04-24 16:27:53 +02:00
zimbatm
1a5e6972c2
rename the 'path' argument to 'root'
It's more explicit that way
2021-04-24 13:52:52 +02:00
zimbatm
669338fbbe
allow/deny -> include/exclude
This is a bit more descriptive.
2021-04-24 13:43:08 +02:00
zimbatm
a1d076b121
document 2021-04-23 19:19:37 +02:00
zimbatm
a1e0618f4c
Make it work 2021-04-23 18:53:18 +02:00
zimbatm
e404d1fd74
hi! 2021-04-23 14:17:03 +02:00