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
18.85k stars 702 forks source link

CLI Enhancement: Ability to specify all command parameters in a json file ("command-params-file" flag) #597

Open kcq opened 8 months ago

kcq commented 8 months ago

Right now each CLI command accepts a set of command parameters as separate command line flags. It's ok for adhoc use, but it's less ideal for automation. The goal for the "command-params-file" flag is to provide an ability to specify all required command-specific parameters in one JSON formatted file.

There's already a placeholder for the flag, but there's no logic to load and process the file data.

This is a good first issue for somebody already comfortable with Go and refactoring a significant amount of CLI flag processing code.

MeenuyD commented 8 months ago

Hello @kcq I would like to work on this issue can you please assign it to me and tell me which files need to be changed

vash-knives commented 4 months ago

@kcq , still need this done? let me know, can work on this.

dpcamargo commented 1 month ago

@kcq is this issue still open?

kcq commented 1 month ago

@kcq is this issue still open?

yes, it is open. if you are interested in working on it it's good to post the PRs here

Billy-North commented 1 month ago

I was just been playing around with this issue yesterday and think I have a solution outlined, I would be keen to try and post a PR over this weekend.