-
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Integrate CLI arguments into the configuration loading handled by the djls-conf
crate, allowing CLI flags to override settings found in files.
This came up while working on #66, but I punted it because merging CLI arguments with the settings loaded by the config
crate (which djls-conf
uses) can be a bit tricky.
The desired priority for settings is:
- CLI Arguments
- Project Files (
djls.toml
,.djls.toml
,pyproject.toml
) - User Config File (
~/.config/djls/djls.toml
) - Defaults
To do this, we'll need to map the CLI arguments to the fields in the Settings
struct within djls-conf
and decide where in the startup sequence this merge should happen.
Metadata
Metadata
Assignees
Labels
No labels