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

Add support for disabling --env-prefix #8

Closed
themalkolm opened this issue May 10, 2017 · 2 comments
Closed

Add support for disabling --env-prefix #8

themalkolm opened this issue May 10, 2017 · 2 comments

Comments

@themalkolm
Copy link
Owner

We can keep default one, we can change it but currently we can't clear it. Lets update code to support this option for --env-prefix flag.

@themalkolm
Copy link
Owner Author

Hm.. not sure. Lets make a magic value - instead.

@themalkolm
Copy link
Owner Author

func (v *Viper) SetEnvPrefix(in string) {
	if in != "" {
		v.envPrefix = in
	}
}

It is not possible to remove env prefix after it is set.

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

1 participant