From 6103208e0fd382fb5f8c3e317fa28d888d42cb2b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 28 Sep 2025 20:04:52 +0300 Subject: Document config defaults in CLI help --- internal/appconfig/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'internal') 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") -- cgit v1.2.3