Merge config files
I found that there is some overlap between the config files of broker and dbproxy. At least with the auth configuration, I have the impression that it is rather arbitrarily split between the two files. Could they possibly be joined together?
Look up config files in well-known path(s)
Working with the basebox binaries would be easier if the --config-file
parameter was optional. I’d suggest to scan $XDG_CONFIG_HOME/basebox/{bin}.toml
(where {bin}
is the name of the binary: dbproxy
or broker
, or possibly basebox
or config
if the two were joined).
There are more paths like /etc/basebox/
that could be scanned as well, but I think this is not necessary at this point. Searching multiple paths would create the need to merge multiple existing configs, which I assume is just too much work for too little gain.