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

Option to define loader to use #9

Open
ashleyhood opened this issue Apr 7, 2016 · 4 comments
Open

Option to define loader to use #9

ashleyhood opened this issue Apr 7, 2016 · 4 comments

Comments

@ashleyhood
Copy link

It would be helpful to define which loader to use on the config file in the options, as not all config files will have an extension.

For example, I don't added extensions to my ini files but would still like to load them using a standard library like Vars.

This may only be possible when a single config is loaded or that all configs being loaded will have to be of the same type.

@m1
Copy link
Owner

m1 commented Apr 7, 2016

Happy to do this but what's the use case for this? Can't you just add a file extension?

@ashleyhood
Copy link
Author

I am writing a cli script and would like to get the distro version using /etc/os-release file.

@m1
Copy link
Owner

m1 commented Apr 7, 2016

Okay I see, I'll see about doing this, it will be probably be a toggle in the options; something along the lines of default_parser

@m1
Copy link
Owner

m1 commented Apr 7, 2016

Can send a pull request if you want 👌 👍

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

No branches or pull requests

2 participants