jenkins-cli-python
jenkins-cli-python copied to clipboard
WIP: Separate job bash completion for environments
This PR is still work in progress and includes the bash part of a fix for #47.
This still needs to be done:
- [ ] modify python part of the code to generate different caches
- [ ] some kind of environment name check/sanitization/escaping
Note that this PR only takes the -e/--environment option into account, --host and --username are ignored.
The bash completion script now searches for the cache file ~/.cache/python-jenkins-cli/job_cache_$ENV where $ENV is parsed from the commandline (the value that follows the -e/--environment switch).
Fixes #47