endkb / SoundsDownloadScript

Download programs from BBC Sounds and publish them to a podcast feed
2 stars 0 forks source link

Merge test-external-config with main: Configuration variables CAN be moved out of the inline configuration and into external files #4

Closed endkb closed 6 months ago

endkb commented 6 months ago

This merge adds several new features to SoundsDownloadScript.ps1 and genRSS.ps1:

The config for SoundsDownloadScript.ps1 can now be stored in a separate .ps1 file and called using the -DotSrecConfig command line argument. This was implemented to make it easier to upgrade SoundsDownloadScript without having to transcribe the settings to a new file each time. External file should look like the inline config. Just copy it. Also, if the same variables exist both in the external file and inline, the external file will take precedence.

Implemented the -DotSrcConfig command line argument

The DebugDirectory can also now be specified either from the config or directly from a command line argument.

Implemented the -DebugDirectory command line argument

In genRSS.ps1, Debug and DebugDirectory can also be specified in a profile file or via command line arguments. It has been added to the SampleProfile.

Implemented the -Debug command line argument Implemented the -DebugDirectory command line argument