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.
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