johackim / rdcli

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

Support for config file #48

Closed 3nt3 closed 2 years ago

3nt3 commented 2 years 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 2 years ago

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