-
Notifications
You must be signed in to change notification settings - Fork 22
Add support for indexing multiple directories into a single database #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
⚠️ No Changeset found
Latest commit: 5a749c3
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
Co-authored-by: rufuspollock <180658+rufuspollock@users.noreply.github.com>
Co-authored-by: rufuspollock <180658+rufuspollock@users.noreply.github.com>
Co-authored-by: rufuspollock <180658+rufuspollock@users.noreply.github.com>
Uh oh!
There was an error while loading. Please reload this page.
The CLI treated the second argument as a config file, preventing multiple directories from being indexed. Additionally, running the command sequentially overwrote previous data because each run reset the database.
Changes
CLI (
src/bin/index.js).jsor.jsonextensions instead of positionLibrary (
src/lib/markdowndb.ts)indexFolders()method that accumulates files from multiple directories before writing to database/contentand/content-backup)indexFolder()for backward compatibilityTests (
src/tests/cli.spec.ts)Documentation (
README.md)Usage
Single directory usage remains unchanged.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.