Skip to content
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 a way to load directly into a clap app #4

Closed
epage opened this issue Jan 21, 2022 · 3 comments · Fixed by #13
Closed

Provide a way to load directly into a clap app #4

epage opened this issue Jan 21, 2022 · 3 comments · Fixed by #13

Comments

@epage
Copy link

epage commented Jan 21, 2022

Something like load(impl serde::Serializer) -> clap::App

@aobatact
Copy link
Owner

Something like load_yaml, load_toml under the feature gate?

@epage
Copy link
Author

epage commented Jan 21, 2022

Hmm, used to dealing with this from all of the other serde angles. Most people are used to using the from_str functions provided by their serializer crate. Some serializer crates do expose their serde::Serializer so you could have a load(serializer: impl serde::Serializer) though I would deem this a lower priority

@epage epage changed the title Only expose load? Provide a way to load directly into a clap app Jan 21, 2022
@epage
Copy link
Author

epage commented Jan 21, 2022

I've updated the issue from being about removing wrappers to about a direct load.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants