feat(cli): default to XDG_CONFIG_HOME if set#745
feat(cli): default to XDG_CONFIG_HOME if set#745michaelBelsanti wants to merge 1 commit intobee-san:masterfrom
Conversation
|
closes #741 |
|
I think I'm generally in favour of this (and we can update the wiki to reflect limited support for the XDG spec.) but it'd be good to wrap this in a unit test. We're currently using Thoughts? |
|
Incidentally, poking around a little more, Go's |
Thanks, I'll look into using that.
Can you explain a bit what this would entail? I don't do much coding outside scripting, so not very familiar with unit testing. |
|
IMO use Dirs https://crates.io/crates/dirs which is made for this :) |
whoops, never saw this noti. i'll update it to use that when i have some time. |
|
thanks! :) |
Uses $XDG_CONFIG_HOME/rustscan.toml if it is set, falls back to ~/.rustscan.toml otherwise.