summaryrefslogtreecommitdiff
path: root/internal/cmd/root.go
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/cmd/root.go
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/cmd/root.go')
-rw-r--r--internal/cmd/root.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/cmd/root.go b/internal/cmd/root.go
index 927a9b8..bf4f64a 100644
--- a/internal/cmd/root.go
+++ b/internal/cmd/root.go
@@ -53,7 +53,7 @@ func Execute() {
func init() {
// Global flags
- rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "configuration file (default: ~/.config/gitsyncer/config)")
+ rootCmd.PersistentFlags().StringVarP(&cfgFile, "config", "c", "", "configuration file (default: ~/.config/gitsyncer/config.json)")
// Set default work directory
home, err := os.UserHomeDir()