uber-go / config

Configuration for Go applications
https://godoc.org/go.uber.org/config
MIT License
448 stars 41 forks source link

Command line provider conflicts with Cobra #34

Closed bayesianmind closed 7 years ago

bayesianmind commented 7 years ago

The default config provider conflicts badly with cobra: https://github.com/uber-go/config/blob/master/config.go#L76 There's no way to easily turn off the command line provider as far as I know if you want to use the default fx fileset and env expansion logic.

This was breaking Catalyst's flags and as soon as I stopped using the command line provider Catalyst's flags came back.

ghost commented 7 years ago

via https://github.com/uber-go/config/pull/42