-
Notifications
You must be signed in to change notification settings - Fork 202
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
Add support for TOML config files (--config-file) #3442
Conversation
@@ -14,7 +14,7 @@ import | |||
std/[os, tables, strutils, terminal, typetraits], | |||
|
|||
# Nimble packages | |||
chronos, confutils, | |||
chronos, confutils, toml_serialization, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is toml_serialization here? shouldn't it be in conf.nim
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's used here as well. We refer to the Toml
format type when we decide which config path to load. I guess I could have re-exported it from conf.nim
, but conf.nim
is a popular file, so it would have resulted in more pollution.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it's better to reexport regardless - we've had enough trouble with imports, the reexport makes for shorter import lists overall which helps find circular imports - it also makes for fewer compiler errors and weird import-order problems which lead to formatting issues in log files etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll assume command-line params take priority over config files? docs should be updated too
No description provided.