feat: add ability to specify include/exclude filters - #17
Merged
Conversation
ptsouchlos
force-pushed
the
feature/add-filters
branch
4 times, most recently
from
June 16, 2026 23:27
5d27720 to
1d6bbc1
Compare
This module adds a wrapper for the GlobSet library so we can have include/exclude filters when adding a project.
The include/exclude globbing expressions will need to be saved to the config file, so add entries for them. Eventually, it should also be possible to update the glob patterns from the update command as well.
Integrate `Filter` into the cache impl.
Integrate `Filter` into filesystem module. The filter now dictates which files/directories are copied over during the copy walk after the repo is pulled to a temporary directory.
Integrate the other changes into the actual implementation for the add command.
ptsouchlos
force-pushed
the
feature/add-filters
branch
from
June 17, 2026 01:29
1d6bbc1 to
13a8714
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for
--includeand--excludeflags to theaddcommand. This allows you to specify which files/folders to include or exclude when adding an embed. The way this is set up, if a pattern is excluded, it is always excluded even if the same file or dir matches an include. For a file or dir to be included, it has to match the include set and not be part of the exclude set.