-
Notifications
You must be signed in to change notification settings - Fork 38
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
Provide Path trait for application granting access to common user directories #861
Comments
I think that is a good idea. In general, I feel, configuration management is a bit cumbersome right now. Especially, if you want to have more than on config file being used for different purposed or merging values from different inputs (ENV, cli + config file). For the trait design, I'm not quite sure, though. It might be worthwhile to add something non-breaking to the Application Trait? |
My idea was to extend the application traits path type py appending |
The I would definitely prefer not to pull in |
@simonsan please open separate issues for this as they're off topic for this one, and also note that overriding configuration with CLI arguments is what the |
I can made this feature optional, no problem! I'm curious how you came up with the 60 transitive dependencies though. It should have three major ones: |
@mainrs the dependency tree is as follows:
All of those do matter and impact the Cargo.lock resolution, even if the platform specific ones are the only ones that are actually compiled. There is unfortunately no way to feature-gate redox support and all of the crates will wind up in Cargo.lock regardless. |
I am thinking about a trait like this:
This would give CLIs access to the preferred user's configuration directory as well as their data directory. A crate like https://crates.io/crates/directories could be used.
If interest exists, I'd be happy to open a PR merging such a trait. Maybe putting this behind a feature called "directories" or "project-dirs" or similar.
The text was updated successfully, but these errors were encountered: