slimtoolkit / slim

Slim(toolkit): Don't change anything in your container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Apache License 2.0
19.33k stars 724 forks source link

Specify all command parameters in a json (#597) #598

Closed thecoons closed 11 months ago

thecoons commented 11 months ago

This commit introduces a new flag FlagCommandParamsFile across multiple command files, allowing parameters to be loaded from a specified file.

The LoadParamsFromFile function has been defined to handle file reading and parameter setting. Additionally, code comments and formatting have been updated for improved readability.

This enhancement provides a more flexible and organized way to handle command parameters, especially in cases with numerous or complex parameter sets.