summaryrefslogtreecommitdiff
path: root/internal/config
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-06-23 17:58:12 +0300
committerPaul Buetow <paul@buetow.org>2025-06-23 17:58:12 +0300
commit26ed54e854ca7b26d04108752233e96212bb362a (patch)
tree71352f6de885700e555f1a00023bc2ae7ffa4fa1 /internal/config
parent8706e6a82819c0c16a0c157283de2f14af2664c3 (diff)
Add support for multiple repository configuration and sync
- Add optional 'repositories' array to configuration file - Add --list-repos flag to list configured repositories - Add --sync-all flag to sync all configured repositories at once - Show progress when syncing multiple repositories - Gracefully handle missing remote repositories with warnings - Improve error handling to continue syncing other repos on failure - Add comprehensive integration tests for all functionality - Add test for multiple repository sync feature Example usage: gitsyncer --sync-all # Sync all configured repos gitsyncer --list-repos # List configured repos gitsyncer --sync repo-name # Sync specific repo (still works) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/config')
-rw-r--r--internal/config/config.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index 0fe1ac8..754e226 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -17,6 +17,7 @@ type Organization struct {
// Config holds the application configuration
type Config struct {
Organizations []Organization `json:"organizations"`
+ Repositories []string `json:"repositories,omitempty"`
}
// Load reads and parses the configuration file