johackim / rdcli

The simple way to download and unrestrict DDL files, torrents and magnets
GNU General Public License v3.0
129 stars 15 forks source link

Support for config file #48

Closed 3nt3 closed 1 year ago

3nt3 commented 1 year ago

It is not the most optimal solution to save credentials in environment variables, especially if you intend on sharing your shell's rc file.

A simple TOML file with two entries would suffice for now, but would offer more configuration options in the future as well. TOML is also pretty easy to parse so that shouldn't be a problem.

I'd be happy to create a PR for this functionality but would like to hear your feedback in advance.

3nt3 commented 1 year ago

lmao should have just searched the code instead of only reading the readme