Ohu/xcpng/002 - Tools - Adds CLI for using update scripts#417
Draft
olivierh-pro wants to merge 2 commits intoohu/xcpng-539/001from
Draft
Ohu/xcpng/002 - Tools - Adds CLI for using update scripts#417olivierh-pro wants to merge 2 commits intoohu/xcpng-539/001from
olivierh-pro wants to merge 2 commits intoohu/xcpng-539/001from
Conversation
0738378 to
6dbbc4b
Compare
31e9cbb to
9eeee11
Compare
6dbbc4b to
a3dfcb9
Compare
9eeee11 to
b40f465
Compare
a3dfcb9 to
f64c154
Compare
b40f465 to
13db8fe
Compare
65ea2a4 to
c8c5013
Compare
13db8fe to
6237ad9
Compare
c8c5013 to
a8ab52e
Compare
The cli does nothing but displaying help message. Signed-off-by: Olivier Hoareau <olivier.hoareau@vates.tech>
* `-d`/`--debug` global arg * subparser for command `update` * positional arg `hosts` for update command * optional arg `enablerepo` for update command * intermediate func for wrapping command Signed-off-by: Olivier Hoareau <olivier.hoareau@vates.tech>
6237ad9 to
35d266a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
xcpng-539
This PR adds a
climodule insidetoolssub packages. The cli provides following features:-d/--debugto display log level DEBUGupdatehosts, a list of host addresses or ip addresses--enablerepo, enable one or more repo(s), basically it is ayumwith--enablerepo=extra1The cli uses
_command_update, a wrapper to pass args from command line toupdate_allfunction.A new file
tools.pyis added at root level to act like wrapper to run cli.Note
This code is based on branch ohu/xcpng-539/001
Please, consider this PR #415 before