-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VITIS-8127 Refactor SubCmdConfigure #7571
Conversation
Build failed :( |
Build failed :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work. Much cleaner and easier to maintain!
retest this please. |
Build failed :( |
retest this please. |
Build failed :( |
retest this please. |
Build Passed! |
…fault where applicable
Build Passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Problem solved by the commit
https://jira.xilinx.com/browse/VITIS-8127 SubCmdConfigure should be refactored like SubCmdExamine to use configuration JSON
Bug / issue (if any) fixed, which PR introduced the bug, how it was discovered
N/A
How problem was solved, alternative solutions (if any) and why they were rejected
SubCmdConfigureInternal has been made similar to SubCmdExamineInternal. The --input and --retention options for xbmgmt configure have been made OptionOptions to take advantage of the configuration JSON. As a result, the conflicting options check was removed from the execute function as well (if --input or --retention are found, we execute and return). The hidden options can be taken care of later if we decide to make them OptionOptions or manage them with the configuration JSON.
Risks (if any) associated the changes in the commit
This changes how SubCmdConfigure works behind the scenes.
What has been tested and how, request additional testing if necessary
After changing to OptionsOptions, the help menu looks a little different for xbmgmt configure. Testing was done on Ubuntu 22.04 to make sure --input, --retention, and some hidden options worked as desired. Pipeline should test thoroughly to ensure functionality is the same as before refactoring.
Documentation impact (if any)
N/A