-
Notifications
You must be signed in to change notification settings - Fork 181
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
fix(cli): Respect the --cfg flag #506
Conversation
Use the --cfg flag to load the configuration file for `iroh`. This does not affect the config files for any of the managed processes like iroh-p2p etc.
The vec was not really used.
Added some test to figure out priority and documented it. Fixed the source order appropriately. Also optimised a vec into a slice, because it seemed a bit odd to have it as a vec. I'd say this is ready for review now. |
@@ -23,5 +23,8 @@ thiserror = "1.0" | |||
toml = "0.5.9" | |||
tracing = "0.1.34" | |||
|
|||
[dev-dependencies] | |||
testdir = "0.6.0" |
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.
🔥
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.
oh yeah, i forgot i did sneak that in. but it was genuinely nice while writing the test...
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.
looks great!
macOS failure is unrelated. merging! |
Use the --cfg flag to load the configuration file for
iroh
.This does not affect the config files for any of the managed
processes like iroh-p2p etc.
This flag was not used before.
Also optimises the make_config call a little by taking a slice
rather than a Vec. And assert and document the priority order.