Skip to content
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

[Feature request] Subconfigs #4440

Closed
Scripter17 opened this issue Aug 18, 2023 · 2 comments
Closed

[Feature request] Subconfigs #4440

Scripter17 opened this issue Aug 18, 2023 · 2 comments

Comments

@Scripter17
Copy link
Contributor

I would like to compartmentalize my configuration without having to tack on a bunch of -cs into the command line (Yes this is related to #4252)

Simply I'd like a config option like "subconfig": "path/to/file" that behaves exactly the same as -c path/to/file

(Also, if you're wondering about the donations: No I didn't forget this month; I'm saving up for a thing)

@mikf
Copy link
Owner

mikf commented Aug 21, 2023

Added a subconfigs option that should do what you described.
It only works at the top-level of a config file (no -o subconfigs=…) and it applies recursively.

{
    "subconfigs": [
        "~/a.json",
        "~/b.json"
    ],

    "extractor": {

    }
}

@Scripter17
Copy link
Contributor Author

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants