soupault
soupault copied to clipboard
Specify config via CLI arguments
I have many cases where I would like to reference a configuration file, soupault.toml
from another directory, like in the /nix/store
, or via process substitution in the shell. I would expect something along the lines of readFile $ fromMaybe defaultFilePath (CLIArgs.configFile :: Maybe String)
.
Hm, maybe I'm missing something. Could you elaborate why SOUPAULT_CONFIG=/path/to/soupault.toml soupault
is insufficient?
So the main problem here is my ability to remember this was added (also, I skimmed the code but my OCaml skills are not quite there so I definitely missed it).
What might more actionable is adding stuff like this to the Usage
or manpage so it's a little easier to find.
It's documentes in https://soupault.app/reference-manual/#custom-directory-layouts , but I agree it may not be the most obvious place. Do you have specific ideas how to make it more visible?
Well 'usage' may be a good spot to list such env vars. Else one day manpages??
toastal ไข่ดาว | https://toast.al PGP: 7944 74b7 d236 dab9 c9ef e7f9 5cce 6f14 66d4 7c9e
It's been possible since 4.2.0 but I forgot to reference the issue in the commit.