sourcebot-dev / sourcebot

Blazingly fast code search 🏎️ Deployed as a single Docker image 📦 Search million+ lines of code in your GitHub, GitLab, and Gitea repositories 🪄 MIT licensed ✅
https://sourcebot.dev
MIT License
1.17k stars 37 forks source link

Local directory support #56

Closed brendan-kellam closed 4 weeks ago

brendan-kellam commented 4 weeks ago

This PR expands the configuration schema to support local directories. For example:

{
    "$schema": "./schemas/v2/index.json",
    "repos": [
        {
            "type": "local",
            "path": "/path/to/my/repo",
            "watch": true,
            "exclude": {
                "paths": [
                    ".git",
                    "node_modules"
                ]
            }
        }
    ]
}

Fixes #19