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

Support config files without extension #501

Closed
cpheps opened this issue May 17, 2018 · 4 comments
Closed

Support config files without extension #501

cpheps opened this issue May 17, 2018 · 4 comments
Milestone

Comments

@cpheps
Copy link

cpheps commented May 17, 2018

It would be nice if a config file does not need an extension. It's not uncommon for a dot file to not have an extension, but be in a metadata format.

In order to solve how to parse the file would be ideal to use viper.SetConfigType().

Example:

Reading in a config file $HOME/.config that is YAML formatted.

viper.AddConfigPath(homeDir)
viper.SetConfigType("yaml")
viper.SetConfigName(".config")
@zillani-nuovo
Copy link

Any update on this, We are waiting for this feature too!

@chrim5
Copy link

chrim5 commented Sep 2, 2019

+1 !

@robertocromero
Copy link

We're waiting for this too.

@sagikazarmark
Copy link
Collaborator

This has been implemented in #722

@sagikazarmark sagikazarmark added this to the 1.6.0 milestone Nov 13, 2019
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

5 participants