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

Load configuration from a yaml file #46

Open
MarshallAsch opened this issue Apr 2, 2022 · 0 comments
Open

Load configuration from a yaml file #46

MarshallAsch opened this issue Apr 2, 2022 · 0 comments
Labels
type: feature request New feature or request

Comments

@MarshallAsch
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Having to pass all the configuration through as cli flags or envirionment variables can be frustrating if the same configuration is used for a number of different course configurations.

Describe the solution you'd like

This should load the configuration parameters from configuration files.

A hierarchy (higher takes priority):

  1. ~/.scioer.yml
  2. ~/.config/scioer/config.yml
  3. $XDG_CONFIG_HOME/scioer/config.yml
  4. /etc/scioer/config.yml

A specific configuration file can be specified with the --config <file> or ignored with the --no-config options.

Describe alternatives you've considered

This should tie into the configuration order of precedence with #43, #44, and #45.

@MarshallAsch MarshallAsch added the type: feature request New feature or request label Apr 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant