feat: support options configuration from multiple sources with priority#263
Open
xiezyang wants to merge 4 commits intolat-opensource:masterfrom
Open
feat: support options configuration from multiple sources with priority#263xiezyang wants to merge 4 commits intolat-opensource:masterfrom
xiezyang wants to merge 4 commits intolat-opensource:masterfrom
Conversation
Refactor parse_args to only read environment variables and argv, the functionality of setting options parameters is moved to the new function options_set. Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
…priority Allow configuration to be set from: (1) /etc/latx-x86_64.conf and /etc/latx-i386.conf (2) ~/.config/latx-x86_64.conf and ~/.config/latx-i386.conf (3) environment variables (export) (4) command line arguments Configuration files use .ini format, allowing per-guest program settings to be specified. Priority (higher overrides lower): 4 > 3 > 2 > 1. For the same option, a higher‑priority source overrides the value from a lower‑priority one. Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Remove the following environment variables which are no longer used: - option_check - option_em_debug - option_dump_all_tb Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
Signed-off-by: Zhaoyang Xie <xie_zyang@163.com>
ba3d320 to
08bb065
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.
No description provided.