-
Notifications
You must be signed in to change notification settings - Fork 1
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 config from URL #12
Comments
@stevepentland I was thinking to make this as part of |
My original thought was to have a distinct arg to denote sourcing from a URL, which would offload some logic where we don't bother to try and parse the path as a url and vice versa. Likely something along the lines of .arg(
Arg::with_name("from-url")
.long("url")
.short("u")
.help("Url to source a config file from")
.takes_value(true)
.multiple(false)
.conflicts_with("CONFIG"),
) The mandatory positional The other question is where to process this argument from. Should it be passed to
Personally, I prefer the first option for simplicity, however at some point I would like to break out the config logic as in point 3, simply as part of drawing more boundaries in the future. |
I think at this point I like option 1 the best as well. Mind if I pick up this one? |
This would be nice, so that a file can be loaded from an online gist or the like
The text was updated successfully, but these errors were encountered: