Use XDG config directory as default config path

- Look for config at $XDG_CONFIG_HOME/converge/config.yaml by default
- --config still overrides to an explicit path
- Falls back to single-repo --repo mode if no config file found
- New defaultConfigPath and configFileExists helpers in Converge module
This commit is contained in:
2026-05-11 10:11:34 -04:00
parent d6e15864f4
commit 97e129a855
4 changed files with 71 additions and 37 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
# Example converge configuration file.
# Usage: converge --config converge.yaml
# Place at ~/.config/converge/config.yaml to use by default,
# or pass explicitly with: converge --config converge.yaml
repos:
- path: /home/jbrechtel/org