-
Notifications
You must be signed in to change notification settings - Fork 17
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
Safety & Simplicity for Config Files #28
Comments
I'm asking myself two things:
Edit: sorry I just see we use toml actualy. Edit2: Does this issue relate to sohkd? |
Actualy where is the loading code for the config?I saw a verry simple one in thanks |
We don't currently use any configured values. Previously, we did at least load the config file, but we weren't using it so I removed it some time ago. Starting ftom scratch is fine here. Use serde :) Any config loaded should be added to the Stste struct in |
Ok and so,whatshould be configured?verbosity atleast. |
I'm going to say for now, avoid keybindings. How that's done needs to be completelt rewritten. |
I'll stay generic over how we load the config, because I'm not sure all of them have to be placed in a configuration file. e.g.: the pitch/volume/speed are something which could change a lot during runtime so may be placed in DConf stuf in a future improvement step no? |
Yes, that is a reasonable assumptuon. Even something like the welcome message would be good right now. |
Ok, I know a crate which let be generic over whereare the config (a file, env variables, or command params) with priorities between them. you think it's a good idea to go with this? or we avoid adding a new dep for now and stay with a serde serialization no more? |
I'm fine with Odilia having more dependencies. Go ahead. |
Ok, I start with this. Do I put yourself to reviewers when it's ready? |
Yes please |
Is this issue still relevant? Was looking for good first issues and this seemed to be mainly addressed or not as much an issue anymore in light of the cli support |
I'm also wondering if this issue is still relevant. If not, are there other good first issues that are ongoing? |
At this time, Rust's type system is not being used to verify (before the program starts) that the configuration file is correct.
Error with the JSON are far too common, and kind of hard to diagnose.
This issue contains two jobs:
This is boring work, but should be fairly easy for a beginner to figure out, so I will label it as good first issue.
The text was updated successfully, but these errors were encountered: