Skip to content

feat: add ability to specify include/exclude filters - #17

Merged
ptsouchlos merged 6 commits into
mainfrom
feature/add-filters
Jun 17, 2026
Merged

feat: add ability to specify include/exclude filters#17
ptsouchlos merged 6 commits into
mainfrom
feature/add-filters

Conversation

@ptsouchlos

Copy link
Copy Markdown
Owner

This PR adds support for --include and --exclude flags to the add command. 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.

@ptsouchlos
ptsouchlos force-pushed the feature/add-filters branch 4 times, most recently from 5d27720 to 1d6bbc1 Compare June 16, 2026 23:27
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
ptsouchlos force-pushed the feature/add-filters branch from 1d6bbc1 to 13a8714 Compare June 17, 2026 01:29
@ptsouchlos
ptsouchlos merged commit 456e1aa into main Jun 17, 2026
26 checks passed
@ptsouchlos
ptsouchlos deleted the feature/add-filters branch June 17, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant