Skip to content

Enhance config types and summary#4532

Merged
Torxed merged 2 commits into
archlinux:masterfrom
svartkanin:config-followup
May 10, 2026
Merged

Enhance config types and summary#4532
Torxed merged 2 commits into
archlinux:masterfrom
svartkanin:config-followup

Conversation

@svartkanin

Copy link
Copy Markdown
Collaborator

Enhances the configuration handling logic as well as the summary

  • Introduced a new abstract class type SubConfig that needs to be inherited by all sub configurations.
    • Mandates the implementation of json() (which all do already), and the new summary() method which provides a short summary of the respective configuration element
  • Refactored the configuration handling in args.py to use a new ArchConfigType and split the configurations by plain and sub config
  • Enhanced the summary implementation to use the rich table which handles formatting automatically
image

@svartkanin svartkanin requested a review from Torxed as a code owner May 10, 2026 05:10
@Torxed Torxed merged commit 7fc33c2 into archlinux:master May 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants