summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-09-28 20:04:52 +0300
committerPaul Buetow <paul@buetow.org>2025-09-28 20:04:52 +0300
commit6103208e0fd382fb5f8c3e317fa28d888d42cb2b (patch)
tree9806badfb4f506c2bcf3f6b2e0bf10c52f117dba /internal
parent42ad1a5ef6372e9117c343d728c7a840105e4400 (diff)
Document config defaults in CLI help
Diffstat (limited to 'internal')
-rw-r--r--internal/appconfig/config.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/appconfig/config.go b/internal/appconfig/config.go
index 1b134ee..96ac300 100644
--- a/internal/appconfig/config.go
+++ b/internal/appconfig/config.go
@@ -1046,6 +1046,11 @@ func (a *App) mergeProviderFields(other *App) {
}
func getConfigPath() (string, error) {
+ return ConfigPath()
+}
+
+// ConfigPath returns the default config file path ($XDG_CONFIG_HOME/hexai/config.toml or ~/.config/hexai/config.toml).
+func ConfigPath() (string, error) {
var configPath string
if xdgConfigHome := os.Getenv("XDG_CONFIG_HOME"); xdgConfigHome != "" {
configPath = filepath.Join(xdgConfigHome, "hexai", "config.toml")