summaryrefslogtreecommitdiff
path: root/internal/cli
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-07-13 23:07:46 +0300
committerPaul Buetow <paul@buetow.org>2025-07-13 23:07:46 +0300
commit3a5f62fcba39032279a0fa44ef72bfae38656677 (patch)
tree26bf0a887b618c59df876755124c6e0d0630320c /internal/cli
parent5feaed014f83e83e8accb1a1ff43930cb1fb5e5d (diff)
fix: change default config path to ~/.config/gitsyncer/config.json
- Add .json extension to default config path for clarity - Update all documentation and help text - Update config search paths to include the new default The new default path is ~/.config/gitsyncer/config.json (previously ~/.config/gitsyncer/config) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'internal/cli')
-rw-r--r--internal/cli/handlers.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/cli/handlers.go b/internal/cli/handlers.go
index 44c64c6..02df7ae 100644
--- a/internal/cli/handlers.go
+++ b/internal/cli/handlers.go
@@ -69,7 +69,7 @@ func findDefaultConfigPath() string {
// Check common config locations
configLocations := []string{
filepath.Join(".", "gitsyncer.json"),
- filepath.Join(home, ".config", "gitsyncer", "config"),
+ filepath.Join(home, ".config", "gitsyncer", "config.json"),
filepath.Join(home, ".gitsyncer.json"),
}
@@ -88,7 +88,7 @@ func ShowConfigHelp() {
fmt.Println("No configuration file found. Please create one of:")
fmt.Printf(" - ./gitsyncer.json\n")
- fmt.Printf(" - %s/.config/gitsyncer/config\n", home)
+ fmt.Printf(" - %s/.config/gitsyncer/config.json\n", home)
fmt.Printf(" - %s/.gitsyncer.json\n", home)
fmt.Println("\nOr specify a config file with --config flag")
fmt.Println("\nExample configuration:")