Allows using filepath: notation in any string in the config file.
Passwords still uses special logic (different code) to parse those filepath: files.
Does not work for time intervals/durations.
Definitely works for urls and api keys.
Example error:
$ UN_RADARR_0_API_KEY="filepath:/tmp/file11" unpackerr
2024/07/03 00:33:51 [ERROR] Using Config File: /Users/david/.unpackerr/unpackerr.conf, age: 15 secs 353 ms 925 µs: using filepath: element failure: Unpackerr.Radarr[1/1].Config.APIKey: opening file: open /tmp/file11: no such file or directory
..and when it works, you get an extra line on startup, like this:
[INFO] 2024/07/03 01:12:51 ==> Startup Settings <==
[INFO] 2024/07/03 01:12:51 => Using Config File: /Users/david/.unpackerr/unpackerr.conf, age: 39 mins 15 secs 503 ms
[INFO] 2024/07/03 01:12:51 => Extra Config File: /tmp/file => Unpackerr.Radarr[1/1].Config.APIKey
filepath:
notation in any string in the config file.filepath:
files.Example error:
..and when it works, you get an extra line on startup, like this: