-
Notifications
You must be signed in to change notification settings - Fork 84
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
[RHELC-1507] Port environment variables to config file #1272
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 73bfc1f - Browse repository at this point
Copy the full SHA 73bfc1fView commit details -
Split toolopts from cli both in module as code
In the past, we used to have this portion of code all together inside the toolopts module, making it very difficult to understand and improve as the separation was not intuitive enough. With this patch, we are splitting the cli related functions and classes to its own module, making it an entrypoint for everything related to CLI usage. Toolopts also got its own module to further separate the logic between cli stuff and options stuff. Historically we call all options from our source code as "toolopts", so to preserve the naming convention and minimize as much as possible the changes throughout the codebase, the same name was preserved. A new addition was also made which is the config module. This module is responsible to gather all the configuration options we could ever define for the tool. Currently, it only has CLIConfig and FileConfig, which are the two supported options. Toolopts, at this point, is our final class who will hold all the options that are composed from the cli and config file (being able to be extended in the future to other options).
Configuration menu - View commit details
-
Copy full SHA for 2452e90 - Browse repository at this point
Copy the full SHA 2452e90View commit details -
Move code to their related utils modules
A couple of functions and constants were moved to their related utils modules to get them out of the way from circle dependency and make the codebase a bit more clear
Configuration menu - View commit details
-
Copy full SHA for 813f2a4 - Browse repository at this point
Copy the full SHA 813f2a4View commit details -
Update code reference about toolopts and cli on codebase
This patch introduces the updated references to both toolopts and cli throughout the codebase as some of the things we had before could be changed to the new format, especially because no code get executed before the CLI class parse all the options necessary. We are not safe to call tool_opts even if nothing is populated inside the class. Beware that it will still fail if we try to access any attributes before they get created, but that should be a implementation problem, not really a workflow one, since we expect that the CLI get executed very early in the process.
Configuration menu - View commit details
-
Copy full SHA for 6781736 - Browse repository at this point
Copy the full SHA 6781736View commit details -
Update man script and vulture script
Add a couple of missing variables to the vulture whitelist script so the hook can stop warning about unused variable.
Configuration menu - View commit details
-
Copy full SHA for bfc20a4 - Browse repository at this point
Copy the full SHA bfc20a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for e12d7f0 - Browse repository at this point
Copy the full SHA e12d7f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5cb24e - Browse repository at this point
Copy the full SHA b5cb24eView commit details -
Fix convert2rhel.ini with defaults values and parsing
Parsing the values for inhibitor_overrides now convert it to a boolean value by default.
Configuration menu - View commit details
-
Copy full SHA for b4e7e61 - Browse repository at this point
Copy the full SHA b4e7e61View commit details