devopshq / artifactory-cleanup

Extended cleanup tool for JFrog Artifactory
MIT License
121 stars 65 forks source link

Add support for using environment variables to pass parameters #124

Closed zhan9san closed 9 months ago

zhan9san commented 9 months ago

In debug mode, the command is artifactory-cleanup, but in destroy mode, the command would be artifactory-cleanup --destroy

With environment variable supported, we can use the same command with different environment variable.

The same behavior happens if we want to use different configuration files in different Artifactory servers.

So I propose to add environment variables support, e.g.

https://plumbum.readthedocs.io/en/latest/cli.html#environment-variables