gocsaf / csaf

Tools to download or provide CSAF (Common Security Advisory Framework) documents.
https://csaf.io
42 stars 25 forks source link

Allow for all downloaded files to be stored within a singular folder #398

Closed JanHoefelmeyer closed 1 year ago

JanHoefelmeyer commented 1 year ago

Implement an option to store all downloaded files (that are to be saved) within a single folder instead of being stored in folders based on the year.

These options need to be configurable via a config file and as command line parameters.

JanHoefelmeyer commented 1 year ago

The PR contains the following changes if implemented (https://github.com/csaf-poc/csaf_distribution/pull/418 (Add option to specify download folder)) :

Any set of files currently stored by their year will have the option to instead be stored within a singular folder, named via a config parameter.

How to set the config parameter for both, the toml file and as command line parameter, is documented via: https://github.com/csaf-poc/csaf_distribution/blob/download-folder/docs/csaf_downloader.md

This PR should solve this issue.

tschmidtb51 commented 1 year ago

There is also the option -d. Just from looking at the help file, I wasn't able to figure out, what -d someDIR -f anotherDIR should / would do...