opensearch-cli
opensearch-cli copied to clipboard
[BUG] opensearch configuration should be in $XDG_CONFIG_HOME
What is the bug?
opensearch-cli creates a new directory in my home folder to store its configuration. The standard convention is to put it in $XDG_CONFIG_HOME instead, not $HOME. This standard is widely accepted & followed -- on my 1-month old workstation I have 48 sub-directories in ~/.config.
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
It is supported and accessible as os.UserConfigDir
:
https://pkg.go.dev/os#UserConfigDir
Sounds reasonable. Feel free to submit a PR if you're up for it.